/* ZeLinc LLC, v7
   A deep spruce color field set with a sturdy American Clarendon.
   One idea: big, plain-spoken type on a single saturated green ground,
   with straw as the only light accent and a straw field to close the page.

   Palette
     --spruce  #1F3D31  ground
     --deep    #183228  quieter band (responsible use, footer)
     --bone    #EEEADF  text
     --sage    #B4C1B5  secondary text
     --line    #3E5C4F  rules (decorative only)
     --straw   #E1C877  accent: button, status mark, link underlines, contact field

   Type
     Besley (variable 400 to 900, OFL): display, headings, wordmark
     Public Sans (variable 100 to 900, OFL): running text and UI
*/

@font-face {
  font-family: "Besley";
  src: url("fonts/besley-var.woff2") format("woff2-variations"), url("fonts/besley-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-var.woff2") format("woff2-variations"), url("fonts/public-sans-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --spruce: #1F3D31;
  --deep: #183228;
  --bone: #EEEADF;
  --sage: #B4C1B5;
  --line: #3E5C4F;
  --straw: #E1C877;
  --straw-ink: #1F3D31;

  --display: "Besley", "Clarendon", "Rockwell", Georgia, serif;
  --text: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 76rem;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --measure: 38rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--spruce);
  color: var(--bone);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, dl, dd, address, figure { margin: 0; }
main { flex: 1 0 auto; }
address { font-style: normal; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--straw);
  color: var(--straw-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header { padding: 1.75rem 0 0; }
.header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--bone);
}
.wordmark span { font-weight: 400; color: var(--sage); }
.wordmark:hover, .wordmark:hover span { color: var(--straw); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; font-size: 0.9375rem; }
.site-nav a { color: var(--sage); text-decoration: none; padding: 0.25rem 0; }
.site-nav a:hover { color: var(--bone); text-decoration: underline; text-decoration-color: var(--straw); }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.375rem, 1rem + 5vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  max-width: 20ch;
  text-wrap: balance;
}
.hero-sub {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  max-width: 30em;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  line-height: 1.35;
  text-wrap: balance;
}
.nobr { white-space: nowrap; }
.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  background: var(--straw);
  color: var(--straw-ink);
  font-family: var(--text);
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 2rem;
}
.btn:hover { background: var(--bone); color: var(--straw-ink); }

.status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--sage);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.status::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--straw);
}

/* Sections */
.section { padding: clamp(3rem, 6.5vw, 4.75rem) 0; border-top: 1px solid var(--line); }
.section h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}

.statement {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.3125rem, 1.1rem + 0.8vw, 1.75rem);
  line-height: 1.45;
  max-width: 34em;
}
.section-use { background: var(--deep); border-top: 0; }
.use-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem clamp(1.5rem, 4vw, 3.5rem);
}
.use-list li {
  padding-top: 1rem;
  border-top: 2px solid var(--straw);
  font-family: var(--display);
  font-size: 1.3125rem;
  line-height: 1.35;
}

.statement a { text-decoration-thickness: 1px; }

/* Contact: the closing straw field */
.section-contact {
  background: var(--straw);
  color: var(--straw-ink);
  border-top: 0;
}
.contact-email {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.75rem, 1rem + 3.4vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.section-contact a { text-decoration-color: var(--straw-ink); text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
.section-contact a:hover { color: var(--straw-ink); text-decoration-thickness: 4px; }
.section-contact :focus-visible { outline-color: var(--straw-ink); }
/* Footer */
.site-footer {
  background: var(--deep);
  color: var(--sage);
  padding: 2.5rem 0 3rem;
  font-size: 0.875rem;
  line-height: 1.55;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 3rem;
}
.footer-links { display: flex; gap: 1.5rem; align-items: start; }
.footer-links a { color: var(--bone); }

/* Legal and 404 pages */
.doc-page { padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); }
.doc-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.doc-head h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.doc-meta { margin-top: 0.85rem; color: var(--sage); font-size: 0.9375rem; }
.doc { max-width: var(--measure); }
.doc h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.25;
  margin: 2.5rem 0 0.6rem;
}
.doc h2:first-child { margin-top: 0; }
.doc p + p { margin-top: 1rem; }
.doc .btn-row { margin: 1.75rem 0; }

/* Responsive */
@media (max-width: 56rem) {
  .use-list { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
}
@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .hero h1 { font-size: 2.5rem; line-height: 1.06; }
  .site-header { padding-top: 1.25rem; }
  .header-inner { display: block; }
  .site-nav { margin-top: 0.9rem; gap: 0.25rem 1rem; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  body { background: #fff; color: #000; }
  .section-use, .section-contact, .site-footer { background: none; color: #000; }
  .skip-link, .site-nav { display: none; }
}
