:root {
  color-scheme: light;
  --paper: #f7f1e7;
  --orange: #cb8247;
  --ink: #292621;
  --grey: #a99b89;
  --sage: #738575;
  --muted: #62594d;
  --line: #d8cdbc;
  --accent-text: #8c4926;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.65 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 5px; }
.site-header, main, .site-footer { width: min(1130px, calc(100% - 3rem)); margin-inline: auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 5rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; font-size: 1.3rem; letter-spacing: -.04em; text-decoration: none; }
.mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--orange); font-size: 1.1rem; color: var(--ink); }
.brand-dot { color: var(--accent-text); }
.site-menu { position: relative; }
.site-menu summary { list-style: none; border: 1px solid var(--line); padding: .45rem .85rem; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu nav { position: absolute; right: 0; top: calc(100% + .5rem); width: min(19rem, 85vw); z-index: 2; background: var(--paper); border: 1px solid var(--line); padding: .45rem 1rem; }
.site-menu nav a { display: block; padding: .5rem .25rem; text-decoration: none; }
.site-menu nav a + a { border-top: 1px solid var(--line); }
.site-menu nav a[aria-current="page"] { font-weight: 700; color: var(--accent-text); }
.skip { position: absolute; left: 1rem; top: 1rem; transform: translateY(-200%); background: var(--paper); padding: .4rem; z-index: 3; }
.skip:focus { transform: none; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(1.5rem, 6vw, 5rem); padding: clamp(3rem, 8vw, 6.5rem) 0; }
.page-intro { padding: 4.5rem 0 2rem; border-bottom: 1px solid var(--line); }
.eyebrow, .label, .strip { font: .875rem/1.5 ui-monospace, monospace; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
h1, h2 { font-family: Georgia, serif; font-weight: 400; line-height: 1.04; }
h1 { font-size: clamp(3rem, 7.8vw, 6.6rem); letter-spacing: -.055em; margin: 1rem 0 1.5rem; }
h1 em { color: var(--accent-text); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.035em; margin: .6rem 0 1.25rem; }
h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
p { margin: 0 0 1.15rem; }
.intro, .copy { color: var(--muted); max-width: 60ch; }
.intro { font-size: 1.18rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin: 1.65rem 0 0; }
.button { display: inline-block; background: var(--ink); color: var(--paper); padding: .7rem 1.15rem; text-decoration: none; font: inherit; border: 0; cursor: pointer; }
.button:hover { background: var(--accent-text); color: var(--paper); }
.art { background: #ece3d3; border-radius: 48% 48% .25rem .25rem; overflow: hidden; }
.art svg { display: block; width: 100%; height: auto; }
.mascot { margin: 0; width: min(100%, 26rem); justify-self: center; }
.mascot figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding-top: .7rem; font-size: .875rem; color: var(--muted); }
.mascot figcaption strong { color: var(--ink); }
.page-intro.with-mascot { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 2rem; }
.strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding: 1rem 0; border-block: 1px solid var(--line); }
main section { padding: clamp(2rem, 5vw, 4.5rem) 0; border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(1.25rem, 6vw, 4rem); }
.split > *, .hero > * { min-width: 0; }
.offering, .row { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.offering:first-child, .row:first-child { padding-top: 0; }
.offering:last-child, .row:last-child { border-bottom: 0; padding-bottom: 0; }
.offering p, .row p { margin: 0; color: var(--muted); }
.hardware { display: flex; gap: .65rem; flex-wrap: wrap; margin: 1rem 0; }
.hardware span { border: 1px solid var(--line); padding: .35rem .65rem; }
.note, .effective { color: var(--muted); font-size: .875rem; }
.api, pre { min-width: 0; padding: 1.25rem; background: var(--ink); color: var(--paper); }
.api .label { color: #f3bf97; }
.api pre { padding: 0; }
code { overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; }
main details { padding: 1rem 0; border-top: 1px solid var(--line); }
summary { cursor: pointer; }
main details p { margin: .7rem 0 0; }
.badge { display: inline-block; padding: .15rem .55rem; color: var(--ink); background: #e9ddcb; border-left: 3px solid var(--grey); font-size: .875rem; }
.badge.live { background: #e2eadf; border-color: var(--sage); }
.prose { max-width: 72ch; padding: 2.5rem 0; }
.prose h2 { font-size: 1.75rem; }
.home-divisions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}
.home-divisions article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-top: 3px solid var(--sage);
  padding-top: 1rem;
}
.home-divisions h3 { font: 1.65rem/1.2 Georgia, serif; }
.home-divisions p { color: var(--muted); }
.home-divisions a { margin-top: auto; }
.home-api { align-items: center; }
.home-api .api p:last-child { margin-bottom: 0; }
.home-contact {
  margin-top: 2.5rem;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
  background: #e5e9de;
}
.home-contact p { max-width: 61ch; }
.software-hero h1 { font-size: clamp(2.5rem, 5.15vw, 4.5rem); }
.software-specialties-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem clamp(1.5rem, 5vw, 4rem);
}
.software-specialties-grid article {
  border-top: 2px solid var(--sage);
  padding-top: 1rem;
}
.software-specialties-grid h3 { font: 1.45rem/1.25 Georgia, serif; }
.software-specialties-grid p { margin-bottom: 0; color: var(--muted); }
.software-specialties-grid p + p { margin-top: .75rem; }
.software-process {
  padding-inline: clamp(1.25rem, 5vw, 4rem);
  background: #e5e9de;
  border-bottom-color: var(--sage);
}
.software-process ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem clamp(1.25rem, 3vw, 2.5rem);
  margin: 0;
  padding-inline-start: 1.4rem;
}
.software-process li::marker { font: 700 .875rem ui-monospace, monospace; }
.software-process li p { margin: 0; color: var(--muted); }
.contact-layout {
  color-scheme: only light;
  display: grid;
  grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr);
  grid-template-areas: "details mascot" "composer composer";
  gap: 1.75rem clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact-details { grid-area: details; min-width: 0; }
.contact-details .eyebrow { color: var(--accent-text); margin-bottom: 1rem; }
.contact-details h1 {
  font-size: clamp(2.85rem, 4.5vw, 4.25rem);
  line-height: .99;
  margin: 0 0 1.3rem;
}
.contact-details .intro { max-width: 35ch; }
.contact-address { border-top: 1px solid var(--line); margin-top: 1.6rem; padding-top: .9rem; }
.contact-address .label { margin: 0 0 .15rem; }
.contact-address a { font-weight: 600; overflow-wrap: anywhere; }
.contact-capacity { margin: .65rem 0 0; }
.contact-layout > .mascot { grid-area: mascot; justify-self: end; }
.contact-composer {
  grid-area: composer;
  min-width: 0;
  container-type: inline-size;
  --composer-gutter: clamp(1.2rem, 3.3vw, 2.25rem);
  --composer-frame: 12px;
  --composer-detail: #554839;
  background: #fcf8ef;
  outline: 1px solid var(--composer-detail);
}
.contact-composer-header {
  padding: 1.25rem calc(var(--composer-gutter) + var(--composer-frame));
  background: #ab653f;
  color: #eee5d8;
  border-bottom: 1px solid var(--composer-detail);
}
.contact-composer-header h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  font-weight: 900;
  -webkit-text-stroke: .4px currentColor;
}
.contact-composer-body {
  position: relative;
  padding: var(--composer-gutter);
  border: var(--composer-frame) solid #8e4f2e;
  border-top: 0;
}
.contact-composer-body::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--composer-detail);
  border-top: 0;
  pointer-events: none;
}
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
.contact-field { display: grid; align-content: start; min-width: 0; gap: .4rem; }
.contact-field.wide { grid-column: 1 / -1; }
.contact-field label { font: .875rem/1.4 ui-monospace, monospace; font-weight: 650; }
.contact-field .note { margin: .15rem 0 0; }
.contact-form input, .contact-form textarea {
  appearance: none;
  display: block;
  width: 100%;
  min-height: 48px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #b9aa96;
  border-radius: .2rem;
  padding: .65rem .85rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #6f6558; opacity: 1; }
.contact-form input:hover, .contact-form textarea:hover { border-color: #897965; }
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--accent-text);
  outline: 2px solid var(--accent-text);
  outline-offset: 1px;
}
.contact-field [aria-invalid="true"] { border-color: var(--accent-text); }
.contact-form textarea { resize: vertical; min-height: clamp(180px, 24vh, 260px); }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1.4rem;
  margin-top: 1.45rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.contact-actions .button {
  appearance: none;
  min-height: 48px;
  padding: .65rem 1.25rem;
  background: var(--orange);
  color: var(--ink);
  border-radius: .2rem;
  font-weight: 700;
}
.contact-actions .button:hover { background: #bb723a; }
.contact-actions .button:disabled { background: #e6dfd4; color: var(--muted); cursor: wait; }
#email-app-note { margin: .55rem 0 0; }
.contact-email-fallback { margin: 0; overflow-wrap: anywhere; }
.contact-progress {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.form-message {
  border: 1px solid var(--line);
  border-left: 3px solid var(--sage);
  background: #e5e9de;
  padding: .9rem 1rem;
  margin: 0 0 1.15rem;
}
.form-message:last-child { margin-bottom: 0; }
.form-message[role="alert"] { border-left-color: var(--accent-text); background: #f4e4d9; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding: 2rem 0 3rem; color: var(--muted); font-size: .875rem; }
.site-footer div { display: flex; flex-wrap: wrap; gap: .6rem 1rem; }
@media (max-width: 700px) {
  .hero, .split, .page-intro.with-mascot, .home-divisions, .software-specialties-grid, .software-process ol { grid-template-columns: 1fr; }
  .art { width: min(100%, 24rem); margin-inline: auto; }
  .page-intro { padding-top: 3rem; }
}
@media (max-width: 740px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "details" "mascot" "composer";
  }
  .contact-layout > .mascot { justify-self: center; }
}
@container (max-width: 34rem) {
  .contact-fields { grid-template-columns: 1fr; }
  .contact-actions .button { width: 100%; }
}
