/* Devon Computer
   Paper, ink, and a sandstone mark. Mobile first. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/fraunces-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}

:root {
  --ink: #1c2330;
  --paper: #f4f0e8;
  --paper-2: #ebe6dc;
  --paper-3: #fbf9f5;
  --line: #ddd6c8;
  --slate: #2c3340;
  --muted: #4a5160;
  --sand: #9a5340;
  --sand-text: #6b382c;
  --sand-deep: #4e2820;
  --footer-muted: #d4cfc4;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 72rem;
  --header: 4.25rem;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 7vw, 4.15rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.35rem;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--sand-text);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--sand-deep);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  z-index: 30;
  text-decoration: none;
}

.skip:focus {
  transform: translateY(0.75rem);
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--sand-text);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.lede,
.intro {
  max-width: 40rem;
  color: var(--slate);
  font-size: 1.2rem;
  line-height: 1.55;
}

.lede {
  margin-top: 1.1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  padding-block: 0.85rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark__mark {
  width: 1.7rem;
  height: 1.7rem;
  flex: none;
  display: block;
}

.wordmark__text {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
}

.wordmark__devon {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.wordmark__computer {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.nav-toggle {
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 600 0.95rem var(--sans);
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--ink);
  color: var(--paper);
}

.nav-panel {
  display: none;
  flex-basis: 100%;
}

.site-header.is-open .nav-panel {
  display: block;
  padding-bottom: 0.4rem;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0.4rem 0 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--sand-text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.nav-contact {
  align-self: flex-start;
  margin-top: 0.35rem;
  padding: 0.45rem 0.95rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.nav-list a.nav-contact,
.nav-list a.nav-contact:hover {
  color: var(--paper);
  text-decoration: none;
  background: var(--ink);
}

.nav-list a.nav-contact:hover {
  background: var(--sand-deep);
}

main {
  padding-bottom: 1rem;
}

main:focus {
  outline: none;
}

main:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

.page-head {
  padding-top: 2rem;
}

.hero {
  padding-top: 1.75rem;
  padding-bottom: 0.5rem;
}

.hero-grid {
  display: grid;
  gap: 0.25rem 0;
}

.hero-copy {
  order: 1;
}

.hero-copy .lede {
  max-width: 38rem;
}

.hero-lines {
  order: 2;
}

.hero-lines .lines {
  margin-top: 1.35rem;
}

.hero-figure {
  order: 3;
  width: calc(100% + 2.5rem);
  max-height: 11rem;
  margin: 1.35rem -1.25rem 0;
  overflow: hidden;
  border-top: 3px solid var(--sand);
  background: var(--ink);
}

.contours {
  display: block;
  width: 100%;
  height: 28rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  border-color: var(--sand-deep);
  background: var(--sand-deep);
  color: var(--paper);
}

.button-line {
  background: transparent;
  color: var(--ink);
}

.button-line:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.crumbs li {
  display: inline-flex;
  align-items: center;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 0.45rem;
  color: var(--muted);
  text-decoration: none;
}

.crumbs a {
  color: var(--muted);
}

.crumbs [aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}

.lines {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  list-style: none;
}

.lines div {
  min-width: 0;
}

.lines dt {
  margin: 0 0 0.2rem;
  color: var(--sand-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lines dd {
  margin: 0;
}

.lines a,
.aside dd > a.tel {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-variant-numeric: lining-nums;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-decoration: none;
}

.lines a {
  font-size: clamp(1.7rem, 4vw, 2.15rem);
}

.aside dd > a.tel {
  font-size: 1.55rem;
}

.lines a:hover,
.aside dd > a.tel:hover {
  color: var(--sand-deep);
}

.section {
  padding-block: 2.75rem;
}

.section + .section,
.band + .section,
.section + .band {
  border-top: 1px solid var(--line);
}

.band {
  background: var(--paper-2);
  padding-block: 2.75rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro {
  margin-top: 0.85rem;
}

.index {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.index a {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  grid-template-areas:
    "num title"
    "num text";
  column-gap: 0.85rem;
  row-gap: 0.2rem;
  padding: 1.15rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.index a:hover {
  background: var(--paper-2);
}

.index__num {
  grid-area: num;
  padding-top: 0.35rem;
  color: var(--sand-text);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: lining-nums;
}

.index__title {
  grid-area: title;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-color: var(--sand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.index__text {
  grid-area: text;
  max-width: 42rem;
  color: var(--slate);
}

.practice {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.75rem;
}

.practice article {
  padding-top: 0.9rem;
  border-top: 2px solid var(--sand);
}

.practice h3 {
  margin-bottom: 0.45rem;
}

.split {
  display: grid;
  gap: 1.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.places {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.places li + li {
  margin-top: 0.85rem;
}

.places a {
  color: var(--ink);
  text-decoration: none;
}

.places a:hover {
  color: var(--sand-deep);
}

.places strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.layout {
  display: grid;
  gap: 1.75rem;
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.prose > * + * {
  margin-top: 0.95rem;
}

.prose h2 {
  margin-top: 2.4rem;
}

.prose h3 {
  margin-top: 1.6rem;
}

.prose ul,
.prose ol {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose li::marker {
  color: var(--sand-text);
}

.aside {
  background: var(--paper-2);
  padding: 1.15rem 1.15rem 1.3rem;
  border-top: 3px solid var(--sand);
}

.aside h2,
.aside__title {
  margin: 0 0 0.9rem;
  color: var(--sand-text);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.aside dl > div + div,
.aside .onpage li + li {
  margin-top: 0.85rem;
}

.aside dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aside dd {
  margin: 0.15rem 0 0;
  color: var(--ink);
}

.aside .onpage {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}

.aside .onpage a {
  color: var(--ink);
}

.note {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--sand);
  background: var(--paper-2);
  color: var(--ink);
}

.note strong {
  font-weight: 600;
}

.faq h2 {
  margin-bottom: 0.25rem;
}

.faq dt {
  margin-top: 1.35rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.25;
}

.faq dd {
  margin: 0.35rem 0 0;
  max-width: 40rem;
}

.related {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.related li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.related a {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.form {
  max-width: 36rem;
  margin-top: 0.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.95rem;
}

.field span,
.field label {
  color: var(--ink);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border: 1px dashed #b7ad9e;
  border-radius: 0;
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form button {
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--muted);
  background: transparent;
  color: var(--muted);
  font: 600 1rem var(--sans);
}

.steps {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2.7rem;
  border-top: 1px solid var(--line);
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.9rem;
  color: var(--sand-text);
  font-family: var(--serif);
  font-weight: 600;
}

.missing h1 {
  margin-top: 0.5rem;
}

.missing__mark {
  width: 3.25rem;
  height: 3.25rem;
  display: block;
}

.site-footer {
  margin-top: 1rem;
  padding-block: 2.5rem 1.5rem;
  background: var(--ink);
  color: var(--paper);
  border-top: 0.4rem solid var(--sand);
}

.site-footer a {
  color: var(--paper);
}

.site-footer a:hover {
  color: #e7c4b6;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-links + h2 {
  margin-top: 1.4rem;
}

.site-footer h2 {
  margin: 0 0 0.7rem;
  color: var(--footer-muted);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer .wordmark {
  color: var(--paper);
  margin-bottom: 0.8rem;
}

.site-footer .wordmark__computer {
  color: var(--footer-muted);
}

.footer-blurb {
  max-width: 22rem;
  color: var(--footer-muted);
  font-size: 0.98rem;
}

.footer-links,
.footer-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a,
.footer-lines a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.footer-lines a {
  min-height: 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-lines li + li {
  margin-top: 0.75rem;
}

.footer-enquiry > p {
  margin-top: 0.85rem;
  color: var(--footer-muted);
  font-size: 0.95rem;
}

.footer-lines span {
  display: block;
  color: var(--footer-muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(244 240 232 / 22%);
  color: var(--footer-muted);
  font-size: 0.92rem;
}

.legal p + p {
  margin-top: 0.35rem;
}

@media (min-width: 40rem) {
  .lines {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .practice {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .split {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .footer-grid .footer-enquiry {
    grid-column: 1 / -1;
  }
}

@media (min-width: 62rem) {
  .wrap,
  .header-inner {
    width: min(100% - 4rem, var(--max));
  }

  .header-inner {
    flex-wrap: nowrap;
    padding-block: 0.95rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav-panel {
    display: block;
    flex-basis: auto;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.35rem 1.15rem;
    padding: 0;
  }

  .nav-contact {
    margin-top: 0;
    margin-left: 0.35rem;
  }

  .page-head {
    padding-top: 3.5rem;
  }

  .hero {
    padding-top: 2.75rem;
    padding-bottom: 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
    grid-template-areas:
      "copy figure"
      "lines figure";
    column-gap: 3rem;
    row-gap: 0.5rem;
    align-items: stretch;
  }

  .hero-copy {
    grid-area: copy;
  }

  .hero-lines {
    grid-area: lines;
    align-self: end;
  }

  .hero-lines .lines {
    margin-top: 0;
    padding-top: 1.35rem;
  }

  .hero-figure {
    grid-area: figure;
    width: auto;
    max-height: none;
    min-height: 100%;
    margin: 0;
  }

  .contours {
    width: 100%;
    height: 100%;
    min-height: 32rem;
  }

  .section,
  .band {
    padding-block: 4rem;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr) 18.5rem;
    grid-template-areas:
      "intro aside"
      "prose aside";
    column-gap: 3.5rem;
    row-gap: 1.5rem;
    align-items: start;
    padding-top: 3rem;
  }

  .layout__intro {
    grid-area: intro;
  }

  .layout__prose {
    grid-area: prose;
  }

  .aside {
    grid-area: aside;
    position: sticky;
    top: 5.75rem;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.15fr;
  }

  .footer-grid .footer-enquiry {
    grid-column: auto;
  }

  .footer-links a,
  .nav-list a {
    min-height: 2.4rem;
  }
}

@media (max-width: 22.5rem) {
  .wordmark__computer {
    letter-spacing: 0.1em;
  }

  .wordmark__devon {
    font-size: 1.28rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header,
  .skip,
  .nav-toggle,
  .crumbs {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .site-footer {
    background: #fff;
    color: #000;
    border-top: 1px solid #000;
  }

  .site-footer a,
  .site-footer .wordmark,
  .legal,
  .footer-blurb,
  .footer-lines span {
    color: #000;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}
