:root {
  color-scheme: light dark;
  --canvas: #f5efe6;
  --surface: #fff9f1;
  --surface-raised: #ffffff;
  --ink: #2f2923;
  --muted: #6f675f;
  --line: #ddcfc0;
  --terracotta: #c86b4a;
  --terracotta-dark: #8f432c;
  --sage: #718d72;
  --sage-soft: #dbe7d7;
  --ochre: #d59a36;
  --shadow: 0 20px 55px rgb(69 49 34 / 10%);
  --content: 70rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--canvas);
  background-image: linear-gradient(rgb(245 239 230 / 92%), rgb(245 239 230 / 92%)), url("paper/fiber-a.png");
  background-blend-mode: normal, soft-light;
  background-size: auto, 256px 256px;
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--terracotta-dark);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--terracotta);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  transform: translateY(-180%);
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--surface-raised);
  padding: 0.65rem 0.9rem;
}

.skip-link:focus {
  transform: none;
}

.site-header,
.site-footer,
main {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

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

.brand-icon {
  display: block;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  border-radius: 999px;
  color: var(--muted);
  padding: 0.45rem 0.72rem;
  font-size: 0.93rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--sage-soft);
  color: #3e5b40;
}

main {
  min-height: calc(100vh - 14rem);
  padding-block: 3.5rem 5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  padding-block: clamp(2rem, 8vw, 6.5rem);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--terracotta-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  font-weight: 780;
}

h2 {
  margin: 2.8rem 0 0.8rem;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
}

p,
ul,
ol {
  margin-block: 0.7rem 1rem;
}

.lede {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.effort-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.effort-key span {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.shade {
  width: 0.82rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 0.22rem;
}

.shade-none { background: #dfe5df; }
.shade-some { background: #c5d4c3; }
.shade-enough { background: #99b298; }
.shade-complete { background: var(--sage); }

.hero-card {
  display: grid;
  place-items: center;
  padding: 2rem;
  position: relative;
  min-height: 19rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background-color: var(--surface-raised);
  background-image: linear-gradient(rgb(255 255 255 / 95%), rgb(255 255 255 / 95%)), url("paper/fiber-b.png");
  background-blend-mode: normal, soft-light;
  background-size: auto, 256px 256px;
  box-shadow: var(--shadow), inset 0 1px 0 rgb(255 255 255 / 65%);
  overflow: hidden;
}

.hero-icon {
  display: block;
  width: min(100%, 20rem);
  height: auto;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.link-card,
.callout {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background-color: var(--surface);
  background-image: linear-gradient(rgb(255 249 241 / 95%), rgb(255 249 241 / 95%)), url("paper/fiber-b.png");
  background-blend-mode: normal, soft-light;
  background-size: auto, 256px 256px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 48%);
}

.link-card {
  display: block;
  min-height: 11rem;
  padding: 1.4rem;
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.link-card:hover {
  transform: translateY(-3px);
  color: var(--ink);
  box-shadow: 0 12px 30px rgb(69 49 34 / 10%);
}

.link-card p {
  color: var(--muted);
}

.arrow {
  color: var(--terracotta-dark);
  font-weight: 800;
}

.page-heading {
  max-width: 47rem;
  padding-block: 2rem 1rem;
}

.page-heading h1 {
  max-width: none;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(11rem, 0.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
  margin-top: 2.5rem;
}

.toc {
  position: sticky;
  top: 1.2rem;
  border-left: 2px solid var(--line);
  padding-left: 1rem;
}

.toc p {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding-block: 0.26rem;
  color: var(--muted);
  font-size: 0.93rem;
  text-decoration: none;
}

.toc a:hover {
  color: var(--terracotta-dark);
}

.prose {
  max-width: 47rem;
}

.prose > :first-child {
  margin-top: 0;
}

.prose section {
  scroll-margin-top: 1rem;
}

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

.steps {
  padding-left: 1.35rem;
}

.steps strong {
  color: var(--ink);
}

.callout {
  margin-block: 1.6rem;
  padding: 1rem 1.15rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout-title {
  margin: 0;
  color: var(--terracotta-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.support-form {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.form-field label {
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 2.8rem;
  border: 1px solid var(--muted);
  border-radius: 0.65rem;
  background: var(--surface-raised);
  color: var(--ink);
  padding: 0.65rem 0.8rem;
  font: inherit;
}

.form-field textarea {
  resize: vertical;
}

.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  margin-top: 0.35rem;
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: var(--terracotta-dark);
  color: #fff9f1;
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}

.contact-button:hover {
  background: #783722;
  color: #fff;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-block: 1.5rem 2.5rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #171b18;
    --surface: #1d231e;
    --surface-raised: #242b25;
    --ink: #f1eee8;
    --muted: #bbb8b1;
    --line: #3d483f;
    --terracotta: #db8465;
    --terracotta-dark: #ef9c7c;
    --sage: #7f9c80;
    --sage-soft: #2e3d30;
    --ochre: #e2ad54;
    --shadow: 0 20px 55px rgb(0 0 0 / 26%);
  }

  body {
    background-image: linear-gradient(rgb(23 27 24 / 95%), rgb(23 27 24 / 95%)), url("paper/fiber-a.png");
  }

  .hero-card,
  .link-card,
  .callout {
    background-image: linear-gradient(rgb(29 35 30 / 97%), rgb(29 35 30 / 97%)), url("paper/fiber-b.png");
    box-shadow: var(--shadow), inset 0 1px 0 rgb(255 255 255 / 8%);
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    color: #c9ddc8;
  }

  .contact-button {
    color: var(--canvas);
  }

  .contact-button:hover {
    background: var(--terracotta);
    color: var(--canvas);
  }

}

@media (max-width: 46rem) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .site-nav a {
    white-space: nowrap;
  }

  main {
    padding-top: 1.6rem;
  }

  .hero,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 1rem;
  }

  .hero-card {
    min-height: 15rem;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.1rem 1rem;
  }

  .toc p {
    grid-column: 1 / -1;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
