@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/quicksand-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/quicksand-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/quicksand-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/quicksand-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/quicksand-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Sarabun'; font-style: italic; font-weight: 100; font-display: swap; src: url("/assets/fonts/sarabun-latin-100-italic.woff2") format("woff2"); }
@font-face { font-family: 'Sarabun'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/sarabun-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'Sarabun'; font-style: italic; font-weight: 200; font-display: swap; src: url("/assets/fonts/sarabun-latin-200-italic.woff2") format("woff2"); }
@font-face { font-family: 'Sarabun'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/sarabun-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Sarabun'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/sarabun-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Sarabun'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/sarabun-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Sarabun'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/sarabun-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Sarabun'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/sarabun-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Sarabun'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/sarabun-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Sarabun'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/sarabun-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Sarabun'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/sarabun-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Sarabun'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/sarabun-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Sarabun'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/sarabun-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Sarabun'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/sarabun-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Sarabun'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/sarabun-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Sarabun'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/sarabun-latin-800-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #edf1e5;
  --fg-light-base-body: #1d2914;
  --fg-light-base-heading: #1d2914;
  --fg-light-base-muted: #4a5a3e;
  --fg-light-base-link: #476d18;
  --fg-light-base-inverse: #26331b;
  --bg-light-card: #e1e9d4;
  --fg-light-card-body: #1d2914;
  --fg-light-card-heading: #1d2914;
  --fg-light-card-muted: #4a5a3e;
  --fg-light-card-link: #476d18;
  --fg-light-card-inverse: #26331b;
  --bg-light-elevated: #f8faf3;
  --fg-light-elevated-body: #1d2914;
  --fg-light-elevated-heading: #1d2914;
  --fg-light-elevated-muted: #4a5a3e;
  --fg-light-elevated-link: #476d18;
  --fg-light-elevated-inverse: #26331b;
  --brand-light-accent: #476d18;
  --brand-light-accent-hover: #375612;
  --brand-light-on-accent: #f8fbef;
  --focus-light-ring: #476d18;
  --border-light-default: #6c7f5c;
  --border-light-subtle: #c5d3b3;
}
.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; }
.text-role-link:hover { color: var(--brand-light-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-light-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-light-ring); }

/* Carteret Foot Health Journal: sole checks on pale green */
:root {
  --ink: var(--fg-light-base-body);
  --accent: var(--brand-light-accent);
  --accent-deep: var(--brand-light-accent-hover);
  --accent-soft: color-mix(in srgb, var(--brand-light-accent) 45%, var(--bg-light-card));
  --accent-wash: color-mix(in srgb, var(--brand-light-accent) 12%, var(--bg-light-elevated));
  --tint: var(--bg-light-card);
  --paper: var(--bg-light-elevated);
  --keyline: var(--border-light-subtle);
  --edge: var(--border-light-default);
  --round: 'Quicksand', 'Nunito', 'Trebuchet MS', sans-serif;
  --text: 'Sarabun', 'Segoe UI', sans-serif;
  --measure: 38rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --rail: 15.5rem;
}

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

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

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

h1, h2, h3 {
  font-family: var(--round);
  font-weight: 600;
  line-height: 1.2;
  color: var(--fg-heading);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); margin: 0; letter-spacing: -0.005em; }
h2 { font-size: 1.55rem; margin: 2.5rem 0 0.7rem; }
h3 { font-size: 1.22rem; margin: 1.9rem 0 0.5rem; }

p { margin: 0 0 1.05em; }

a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Journal frame: left rail beside the page ---------- */

.journal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: relative;
  border-bottom: 1px solid var(--keyline);
}

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

.brand { display: inline-flex; text-decoration: none; }
.brand .site-logo { display: block; width: auto; height: 3rem; }

.site-nav { display: none; }

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

.site-nav a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-family: var(--round);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.3;
  text-decoration: none;
  color: var(--fg-body);
}

.site-nav a:hover { background: var(--accent-wash); color: var(--accent-deep); }
.site-nav a[aria-current="page"] { background: var(--paper); color: var(--accent-deep); box-shadow: inset 3px 0 0 var(--accent); }

/* Phone menu toggle */
.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  font-family: var(--round);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
}

.site-menu > summary::-webkit-details-marker { display: none; }

.menu-icon {
  display: inline-block;
  width: 1.1rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.site-menu[open] > ul {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 20;
  margin: 0;
  padding: 0.75rem var(--gutter) 1.25rem;
  list-style: none;
  background: var(--tint);
  border-bottom: 2px solid var(--accent-soft);
  border-radius: 0 0 1.25rem 1.25rem;
}

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

.site-menu li a {
  display: block;
  padding: 0.65rem 0;
  font-family: var(--round);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--keyline);
}

@media (max-width: 26rem) {
  .brand .site-logo { height: 2.5rem; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (min-width: 64rem) {
  .journal {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
  }
  .site-header {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    border-bottom: 0;
    border-right: 1px solid var(--keyline);
    padding: 1.75rem 1.1rem 2rem;
  }
  .rail-top { padding: 0 0.4rem 1.5rem; border-bottom: 1px solid var(--keyline); }
  .brand .site-logo { width: 100%; height: auto; max-width: 13rem; }
  .site-menu { display: none; }
  .site-nav { display: block; margin-top: 1.25rem; }
  .site-nav > ul { display: flex; flex-direction: column; gap: 0.2rem; }
  .page-frame { grid-column: 2; }
  .site-footer { grid-column: 2; }
}

/* ---------- Page frame and breadcrumbs ---------- */

.page-frame {
  flex: 1 0 auto;
  width: 100%;
  max-width: 68rem;
  padding: 0 var(--gutter) 4.5rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  margin: 1.4rem 0 0;
  padding: 0;
  font-family: var(--round);
  font-weight: 500;
  font-size: 0.92rem;
}

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

/* ---------- Shared reading prose ---------- */

.prose { max-width: var(--measure); }

.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0 0 1.25em;
}

.prose ul li::marker { color: var(--accent); }
.prose ol { padding-left: 1.4rem; margin: 0 0 1.25em; }
.prose ol li::marker { color: var(--accent); font-family: var(--round); font-weight: 700; }
.prose li { margin-bottom: 0.45em; padding-left: 0.25rem; }

.prose .accent-block {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--paper);
  border: 1.5px solid var(--accent-soft);
  border-radius: 1.25rem;
  box-shadow: inset 0 0 0 6px var(--tint);
}

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

.table-scroll {
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid var(--keyline);
  border-radius: 1rem;
  background: var(--paper);
}

.table-scroll table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.table-scroll th, .table-scroll td { text-align: left; padding: 0.65rem 0.9rem; vertical-align: top; }
.table-scroll tr + tr td, .table-scroll tbody tr td { border-top: 1px solid var(--keyline); }
.table-scroll th { font-family: var(--round); font-weight: 700; background: var(--accent-wash); }

.photo-hero, .photo-inline { margin: 2rem 0; }
.photo-hero img, .photo-inline img { display: block; width: 100%; height: auto; border-radius: 1.5rem; }

/* ---------- Home: sole drawing beside the intro ---------- */

.cover-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(1.5rem, 4vw, 2.75rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 2rem;
}

.sole-figure { margin: 0; }

.sole-drawing { display: block; width: 100%; max-width: 22rem; height: auto; margin: 0 auto; }

.sole-sheet { fill: var(--paper); stroke: var(--keyline); stroke-width: 1.5; }
.sole-line { fill: var(--paper); stroke: var(--ink); stroke-width: 3.5; }
.check-ring { fill: var(--accent-wash); stroke: var(--accent); stroke-width: 3; }
.check-dot { fill: var(--accent); }

.cover-title h1 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.3rem); font-weight: 600; }

.cover-lines { margin-top: 1.5rem; max-width: 32rem; }

.cover-lines .display-line {
  margin: 0 0 0.75rem;
  padding-left: 1.75rem;
  font-size: 1.2rem;
  line-height: 1.55;
  background: radial-gradient(circle at center, var(--accent) 0 0.24rem, transparent 0.27rem) no-repeat 0 0.6em / 0.7rem 0.7rem;
}

.topics { margin: clamp(2.25rem, 5vw, 3.5rem) 0; }

.topic-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.topic {
  display: flex;
  border: 1.5px solid var(--edge);
  border-radius: 1rem;
}

.topic-link {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 7rem;
  padding: 1.1rem 1.15rem;
  border-radius: inherit;
  font-family: var(--round);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  text-decoration: none;
}

.topic-link:hover { background: var(--accent-wash); text-decoration: underline; }

.home-body { margin: 0; }

.cover-body { margin-top: 1.5rem; max-width: 32rem; }
.lost .cover-hero { margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }

@media (max-width: 63.99rem) {
  .topic-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 47.99rem) {
  .cover-hero { grid-template-columns: minmax(0, 1fr); }
  .sole-drawing { max-width: 13rem; }
}

@media (max-width: 30rem) {
  .topic-row { grid-template-columns: minmax(0, 1fr); }
  .topic-link { min-height: 0; }
}

/* ---------- Topic hub: article cards ---------- */

.hub-head { margin: clamp(1.5rem, 4vw, 2.75rem) 0 1.5rem; max-width: 46rem; }

.articles {
  margin-top: 3rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: 2rem;
}

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

.article-grid li {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 7.5rem;
  padding: 1.15rem;
  background: var(--paper);
  border: 1px solid var(--keyline);
  border-radius: 0.5rem;
}

.article-grid a {
  display: block;
  font-size: 1.06rem;
  line-height: 1.35;
  text-decoration: none;
}

.article-grid a:hover { text-decoration: underline; }

/* ---------- Article: gentle single column ---------- */

.reading { max-width: var(--measure); }

.reading-head { margin: clamp(1.5rem, 4vw, 2.75rem) 0 1.75rem; }

.reading-title h1 { font-size: clamp(1.9rem, 1.35rem + 1.9vw, 2.7rem); }


/* ---------- About: origin beside the principles ---------- */

.origin { margin-top: clamp(1.5rem, 4vw, 2.75rem); }

.origin-title { margin-bottom: 1.25rem; }

.origin-body h2 {
  padding: 0.9rem 1.1rem;
  background: var(--tint);
  border-radius: 1rem;
  font-size: 1.3rem;
}

@media (min-width: 56rem) {
  .origin {
    display: grid;
    grid-template-columns: minmax(0, 15rem) minmax(0, var(--measure));
    column-gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }
}

/* ---------- Contact: rounded form on a tinted card ---------- */

.write-in { max-width: 44rem; margin-top: clamp(1.5rem, 4vw, 2.75rem); }

.write-in-title { margin-bottom: 1.25rem; }

.write-form {
  margin-top: 2.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 1.75rem;
}

.form-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }

.field { display: block; margin-bottom: 1.5rem; }

.field-label { display: block; font-family: var(--round); font-weight: 600; font-size: 0.98rem; margin-bottom: 0.4rem; }

.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 2.9rem;
  padding: 0.55rem 1rem;
  font: inherit;
  color: inherit;
  background: var(--paper);
  border: 1.5px solid var(--edge);
  border-radius: 999px;
}

.field textarea { border-radius: 1.25rem; resize: vertical; min-height: 9rem; }

.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--accent-soft);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-button {
  min-height: 2.9rem;
  padding: 0.65rem 2rem;
  font-family: var(--round);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--brand-light-on-accent);
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.form-button:hover { background: var(--accent-deep); }
.form-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (max-width: 40rem) {
  .form-pair { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* ---------- Thank-you ---------- */

.thanks { display: flex; justify-content: center; margin-top: clamp(2rem, 6vw, 4rem); }

.thanks-card {
  max-width: 34rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  border-radius: 2rem;
}

.sole-small { display: block; width: 4.5rem; height: auto; margin: 0 auto 1rem; }
.thanks-note { margin: 0.9rem 0 0; font-size: 1.1rem; }
.thanks-card .prose { margin: 1.1rem auto 0; }
.thanks-return { margin: 1.25rem 0 0; font-family: var(--round); font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--keyline);
  padding: 2rem 0;
}

.footer-inner { max-width: 68rem; padding: 0 var(--gutter); }
.footer-name { font-family: var(--round); font-weight: 700; font-size: 1.15rem; margin: 0 0 0.3rem; }
.footer-line { margin: 0 0 0.6rem; font-size: 1rem; }
.footer-client { margin: 0; font-size: 1rem; }

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