@font-face { font-family: 'Rokkitt'; font-style: italic; font-weight: 100; font-display: swap; src: url("/assets/fonts/rokkitt-latin-100-italic.woff2") format("woff2"); }
@font-face { font-family: 'Rokkitt'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/rokkitt-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'Rokkitt'; font-style: italic; font-weight: 200; font-display: swap; src: url("/assets/fonts/rokkitt-latin-200-italic.woff2") format("woff2"); }
@font-face { font-family: 'Rokkitt'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/rokkitt-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Rokkitt'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/rokkitt-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Rokkitt'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/rokkitt-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Rokkitt'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/rokkitt-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Rokkitt'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/rokkitt-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Rokkitt'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/rokkitt-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Rokkitt'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/rokkitt-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Rokkitt'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/rokkitt-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Rokkitt'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/rokkitt-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Rokkitt'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/rokkitt-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Rokkitt'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/rokkitt-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Rokkitt'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/rokkitt-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Rokkitt'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/rokkitt-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Rokkitt'; font-style: italic; font-weight: 900; font-display: swap; src: url("/assets/fonts/rokkitt-latin-900-italic.woff2") format("woff2"); }
@font-face { font-family: 'Rokkitt'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/rokkitt-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: 'Khula'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/khula-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Khula'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/khula-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Khula'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/khula-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Khula'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/khula-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Khula'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/khula-latin-800-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #f5f7f4;
  --fg-light-base-body: #1a2430;
  --fg-light-base-heading: #1a2430;
  --fg-light-base-muted: #4c5866;
  --fg-light-base-link: #0e6b57;
  --fg-light-base-inverse: #1a2430;
  --bg-light-card: #ffffff;
  --fg-light-card-body: #1a2430;
  --fg-light-card-heading: #1a2430;
  --fg-light-card-muted: #4c5866;
  --fg-light-card-link: #0e6b57;
  --fg-light-card-inverse: #1a2430;
  --bg-light-elevated: #e2ede8;
  --fg-light-elevated-body: #1a2430;
  --fg-light-elevated-heading: #1a2430;
  --fg-light-elevated-muted: #4c5866;
  --fg-light-elevated-link: #0e6b57;
  --fg-light-elevated-inverse: #1a2430;
  --brand-light-accent: #0e6b57;
  --brand-light-accent-hover: #094a3d;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #0e6b57;
  --focus-ring: var(--focus-light-ring);
  --border-light-default: #6b827c;
  --border-light-subtle: #cbdcd5;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
html:has(:focus-visible) :is(details.site-menu, details.site-nav-group)[open]:not(:focus-within) > ul { visibility: hidden; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-ring); }

:root {
  --nb-head: 'Rokkitt', Rockwell, 'Roboto Slab', serif;
  --nb-text: 'Khula', 'Segoe UI', sans-serif;
  --nb-ink: var(--fg-light-base-heading);
  --nb-accent: var(--brand-light-accent);
  --nb-accent-deep: var(--brand-light-accent-hover);
  --nb-on-accent: var(--brand-light-on-accent);
  --nb-rule: var(--border-light-default);
  --nb-hair: var(--border-light-subtle);
  --nb-paper: var(--bg-light-card);
  --nb-tint: var(--bg-light-elevated);
  --nb-grid: color-mix(in srgb, var(--border-light-subtle) 60%, transparent);
  --nb-epi: #b9d9cd;
  --nb-derm: #e4efea;
  --nb-fat: #f3efe2;
  --nb-gutter: clamp(1rem, 4vw, 2.75rem);
  --nb-bar: 4.25rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--nb-text);
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: var(--nb-head);
  line-height: 1.05;
  margin: 0;
}

h1 { font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-weight: 600; }
h3 { font-weight: 600; }

a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a.text-role-link:hover { color: var(--nb-accent-deep); text-decoration-thickness: 2px; }

/* ---------- frame and rail ---------- */

.nb-frame { min-height: 100vh; }

.nb-rail {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 2px solid var(--nb-ink);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.nb-rail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--nb-bar);
  padding: 0.5rem var(--nb-gutter);
}

.nb-brand { display: block; flex: 0 1 auto; min-width: 0; line-height: 0; }
.nb-brand .site-logo { width: 10.5rem; height: auto; }

.nb-toggle { flex: none; }

.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border: 2px solid var(--nb-ink);
  border-radius: 999px;
  background: var(--nb-paper);
  font-family: var(--nb-head);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1;
  white-space: nowrap;
}

.site-menu > summary:hover { background: var(--nb-tint); color: var(--nb-accent-deep); }

.menu-icon {
  display: block;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: radial-gradient(circle, currentColor 0 28%, transparent 30%);
}

.site-menu[open] .menu-icon { background: currentColor; }

.site-menu > ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem var(--nb-gutter) 1.25rem;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--nb-bar);
  max-height: calc(100vh - var(--nb-bar));
  overflow-y: auto;
  background: var(--nb-paper);
  border-bottom: 2px solid var(--nb-ink);
}

.site-menu > ul li { border-top: 1px solid var(--nb-hair); }
.site-menu > ul li:first-child { border-top: 0; }

.site-menu > ul a {
  display: block;
  padding: 0.8rem 0;
  font-family: var(--nb-head);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.15;
  text-decoration: none;
}

.site-menu > ul ul { list-style: none; margin: 0; padding-left: 1rem; }

.nb-rail-links { display: none; }

@media (min-width: 1024px) {
  .nb-frame {
    display: grid;
    grid-template-columns: 16.5rem minmax(0, 1fr);
    align-items: start;
  }

  .nb-rail {
    height: 100vh;
    overflow-y: auto;
    border-bottom: 0;
    border-right: 2px solid var(--nb-ink);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem 2rem 1.25rem;
  }

  .nb-rail::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0.45rem;
    width: 0.7rem;
    background-image: radial-gradient(circle, var(--nb-rule) 0 40%, transparent 44%);
    background-size: 0.7rem 3.25rem;
    background-repeat: repeat-y;
    pointer-events: none;
  }

  .nb-rail-top { display: block; min-height: 0; padding: 0; }
  .nb-brand .site-logo { width: 13rem; }
  .nb-toggle { display: none; }

  .nb-rail-links {
    display: block;
    margin-top: 2.25rem;
    padding-top: 1.25rem;
    border-top: 2px solid var(--nb-ink);
  }

  .site-nav > ul { list-style: none; margin: 0; padding: 0; }
  .site-nav > ul > li { margin: 0 0 0.15rem; }

  .site-nav a,
  .site-nav summary {
    display: block;
    padding: 0.55rem 0.7rem;
    border-left: 4px solid transparent;
    font-family: var(--nb-head);
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.15;
    white-space: nowrap;
    text-decoration: none;
  }

  .site-nav a:hover { background: var(--nb-paper); border-left-color: var(--nb-accent); color: var(--nb-accent-deep); }
  .site-nav a[aria-current="page"] { border-left-color: var(--nb-ink); background: var(--nb-paper); }

  .site-nav-group > summary { list-style: none; cursor: pointer; }
  .site-nav-group > summary::-webkit-details-marker { display: none; }
  .site-nav-group > ul { list-style: none; margin: 0; padding: 0 0 0 0.9rem; }
}

/* ---------- sheet: graph-paper ground ---------- */

.nb-sheet {
  min-width: 0;
  background-image:
    linear-gradient(var(--nb-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--nb-grid) 1px, transparent 1px);
  background-size: 1.5rem 1.5rem;
}

.breadcrumbs {
  max-width: 72rem;
  padding: 1.1rem var(--nb-gutter) 0;
  font-size: 0.92rem;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.55rem;
  color: var(--fg-muted);
}

main {
  display: block;
  max-width: 72rem;
  padding: clamp(1.25rem, 4vw, 2.75rem) var(--nb-gutter) clamp(2.5rem, 6vw, 4.5rem);
}

main h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); max-width: 20ch; }

/* body copy */
.nb-prose { max-width: 66ch; }
.nb-prose h2 { font-size: clamp(1.55rem, 3vw, 2rem); margin: 2.2rem 0 0.6rem; }
.nb-prose h3 { font-size: 1.3rem; margin: 1.6rem 0 0.4rem; }
.nb-prose p,
.nb-prose ul,
.nb-prose ol { margin: 0 0 1rem; }
.nb-prose li { margin-bottom: 0.35rem; }

.photo-hero,
.photo-inline { margin: 0 0 1.75rem; }

.photo-hero img,
.photo-inline img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--nb-ink);
  border-radius: 4px;
}

.photo-hero img { aspect-ratio: 3 / 2; object-fit: cover; }

.table-scroll { overflow-x: auto; margin: 0 0 1.25rem; background: var(--nb-paper); }
.table-scroll table { border-collapse: collapse; width: 100%; }
.table-scroll th,
.table-scroll td { text-align: left; padding: 0.5rem 0.75rem; border: 1px solid var(--nb-hair); }

.accent-block {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1.1rem;
  background: var(--nb-paper);
  border: 1px solid var(--nb-hair);
  border-left: 5px solid var(--nb-accent);
}

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

/* ---------- diagram parts ---------- */

.sk-epi { fill: var(--nb-epi); }
.sk-derm { fill: var(--nb-derm); }
.sk-fat { fill: var(--nb-fat); }
.sk-lobes circle { fill: none; stroke: var(--nb-rule); stroke-width: 2; }
.sk-peel { fill: var(--nb-accent); opacity: 0.38; }
.sk-guide { fill: none; stroke: var(--nb-accent); stroke-width: 2; stroke-dasharray: 5 4; }
.sk-tick { fill: none; stroke: var(--nb-ink); stroke-width: 2; }
.sk-needle rect { fill: var(--nb-paper); stroke: var(--nb-ink); stroke-width: 3; }
.sk-needle path,
.sk-needle-line { fill: none; stroke: var(--nb-ink); stroke-width: 3; stroke-linecap: round; }
.sk-ipl rect { fill: var(--nb-ink); }
.sk-ipl path,
.sk-wave { fill: none; stroke: var(--nb-accent); stroke-width: 3; stroke-linecap: round; }
.sk-ink,
.sk-ink rect { fill: none; stroke: var(--nb-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sk-plasma { fill: #f1dc9a; }
.sk-red { fill: #b5473f; }
.sk-label { fill: currentColor; font-family: var(--nb-head); font-weight: 600; font-size: 17px; }
.sk-layer { fill: currentColor; font-family: var(--nb-text); font-size: 14px; }

/* ---------- home: specimen board ---------- */

.nb-home { max-width: 76rem; }

.nb-specimen {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  border: 2px solid var(--nb-ink);
  border-radius: 4px;
}

.nb-specimen-copy h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); max-width: 16ch; }

.nb-lines { margin-top: 1.25rem; max-width: 46ch; }

.display-line { margin: 0 0 0.55rem; font-size: 1.12rem; line-height: 1.55; }

.nb-diagram { margin: 0; }
.nb-section-art { display: block; width: 100%; height: auto; }

.nb-hubs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 clamp(2rem, 5vw, 3rem);
  background: transparent;
}

.nb-hub-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 2px solid var(--nb-ink);
  border-radius: 4px;
  text-decoration: none;
}

.nb-hub-card:hover { border-color: var(--nb-accent); box-shadow: 4px 4px 0 var(--nb-accent); }

.nb-hub-art { flex: none; width: 5.5rem; height: auto; }

.nb-hub-label {
  font-family: var(--nb-head);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.1;
}

.nb-home-body { max-width: none; }

@media (min-width: 760px) {
  .nb-specimen { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; }
}

@media (min-width: 1180px) {
  .nb-home-body {
    display: grid;
    grid-template-columns: minmax(0, 64ch) minmax(14rem, 1fr);
    column-gap: clamp(2rem, 4vw, 3.5rem);
  }

  .nb-home-body > * { grid-column: 1; }
  .nb-home-body > .photo-hero { grid-column: 2; grid-row: 1 / span 12; align-self: start; position: sticky; top: 2rem; }
  .nb-home-body > .photo-hero img { aspect-ratio: 4 / 5; }
}

/* ---------- topic hub: index sheet ---------- */

.nb-hub-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--nb-ink);
  background: transparent;
}

.nb-hub-head-art { width: 6rem; height: auto; }

.nb-cards { margin: 1.75rem 0 clamp(2rem, 5vw, 3rem); background: transparent; }

.nb-cards > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
}

.nb-cards > ul > li { margin: 0; display: flex; }

.nb-cards > ul > li > a {
  flex: 1;
  display: block;
  padding: 0 1rem 1rem;
  background: var(--nb-paper);
  border: 2px solid var(--nb-ink);
  border-radius: 4px;
  font-family: var(--nb-head);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.15;
  text-decoration: none;
}

.nb-cards > ul > li > a::before {
  content: "";
  display: block;
  height: 3.25rem;
  margin: 0 -1rem 0.9rem;
  border-bottom: 2px solid var(--nb-ink);
  background:
    linear-gradient(90deg, transparent 0 calc(50% - 2px), var(--nb-ink) calc(50% - 2px) calc(50% + 1px), transparent calc(50% + 1px)) center top / 100% 70% no-repeat,
    linear-gradient(var(--nb-epi) 0 35%, var(--nb-derm) 35% 75%, var(--nb-fat) 75%);
}

.nb-cards > ul > li > a:hover { border-color: var(--nb-accent); box-shadow: 4px 4px 0 var(--nb-accent); }

@media (min-width: 760px) {
  .nb-hub-head { flex-direction: row; align-items: flex-end; gap: 1.25rem; }
}

/* ---------- article: lab notes ---------- */

.nb-article { max-width: 76rem; }

.nb-article-head { margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 2px solid var(--nb-ink); background: transparent; }

.nb-article-grid { display: grid; gap: 2rem; }

.nb-notes { counter-reset: nb-step; background: transparent; }

.nb-notes h2 {
  counter-increment: nb-step;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}

.nb-notes h2::before {
  content: counter(nb-step);
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.35rem;
  border: 2px solid var(--nb-accent);
  border-radius: 50%;
  color: var(--nb-accent-deep);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-0.1em);
}

.nb-panel {
  padding: 1rem;
  border: 2px solid var(--nb-ink);
  border-radius: 4px;
  max-width: 20rem;
}

.nb-panel-art { display: block; width: 100%; height: auto; }

@media (min-width: 1180px) {
  .nb-article-grid { grid-template-columns: minmax(0, 66ch) 16rem; column-gap: clamp(2rem, 4vw, 4rem); align-items: start; }
  .nb-panel { position: sticky; top: 2rem; }
}

/* ---------- about: notebook cover ---------- */

.nb-about { display: grid; gap: 2rem; }

.nb-about-text { background: transparent; }
.nb-about-title { margin-bottom: 1.5rem; }

.nb-about-art {
  margin: 0;
  padding: 1.5rem;
  border: 2px solid var(--nb-ink);
  border-radius: 4px;
  max-width: 22rem;
}

.nb-rack { display: block; width: 100%; height: auto; }

@media (min-width: 900px) {
  .nb-about { grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
  .nb-about-art { position: sticky; top: 2rem; max-width: none; }
}

/* ---------- contact: field note ---------- */

.nb-contact { max-width: 52rem; }

.nb-contact-page {
  position: relative;
  padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(1.25rem, 9vw, 5.5rem);
  border: 2px solid var(--nb-ink);
  border-radius: 4px;
  background-image:
    linear-gradient(var(--nb-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--nb-grid) 1px, transparent 1px);
  background-size: 1.5rem 1.5rem;
}

.nb-pen { display: none; }

.nb-contact-title { margin-bottom: 1.5rem; }

.nb-form {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.nb-field { display: grid; gap: 0.3rem; }

.nb-label { font-family: var(--nb-head); font-weight: 600; font-size: 1.15rem; }

.nb-input {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 0.6rem 0.75rem;
  background: var(--nb-paper);
  border: 2px solid var(--nb-rule);
  border-radius: 4px;
}

.nb-input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--nb-accent); }

.nb-area { resize: vertical; min-height: 9rem; }

.nb-submit {
  justify-self: start;
  padding: 0.75rem 1.4rem;
  font-family: var(--nb-head);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--nb-on-accent);
  background: var(--nb-accent);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.nb-submit:hover { background: var(--nb-accent-deep); color: var(--nb-on-accent); }

@media (min-width: 640px) {
  .nb-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nb-field-wide,
  .nb-submit { grid-column: 1 / -1; }
  .nb-pen { display: block; position: absolute; left: 1.1rem; top: 2rem; width: 2.25rem; height: auto; }
}

/* ---------- thank you: stamped page ---------- */

.nb-thanks { max-width: 44rem; }

.nb-stamp-page {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 2px solid var(--nb-ink);
  border-radius: 4px;
}

.nb-stamp-row { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }

.nb-stamp { width: 5rem; height: 5rem; transform: rotate(-9deg); }
.nb-stamp circle,
.nb-stamp path { fill: none; stroke: var(--nb-accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.nb-stamp .sk-dash { stroke-width: 2; stroke-dasharray: 4 4; }

.nb-mini-layers { width: 5.5rem; height: auto; }

.nb-thanks-title { margin-bottom: 1.25rem; }

/* ---------- footer ---------- */

.nb-footer { border-top: 2px solid var(--nb-ink); }

.nb-footer-inner {
  max-width: 72rem;
  padding: 1.75rem var(--nb-gutter) 2.25rem;
}

.nb-footer-name {
  margin: 0 0 0.3rem;
  font-family: var(--nb-head);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.1;
}

.nb-footer-line { margin: 0 0 0.75rem; font-size: 0.95rem; }
.nb-footer-link { margin: 0; font-size: 0.95rem; }

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