/* Terra Greco site styles. Palette and type from the Brand Concepts board (direction B, Furrow).
   Fonts are self-hosted (SIL Open Font License, see ../fonts/OFL-*.txt). Each file is a variable font
   that covers weights 400 to 600; the unicode ranges are the Latin and Greek subsets. */

@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/commissioner-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/commissioner-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Piazzolla";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/piazzolla-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Piazzolla";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/piazzolla-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1B2A33;
  --slate: #55636C;
  --mist: #C5D0D3;
  --limestone: #EDEEEA;
  --chalk: #FAFAF8;
  --ochre: #C8962E;
  --ochre-deep: #87621A;
  --error: #9E2A1E;            /* form errors only: 6.9:1 on Chalk */
  --mist-line: rgba(197, 208, 211, .22);
  --serif: "Piazzolla", Georgia, "Times New Roman", serif;
  --sans: "Commissioner", "Helvetica Neue", Arial, sans-serif;
  --measure: 64ch;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --focus: var(--ochre-deep);   /* 4.75:1 on Limestone; dark areas switch to Ochre below */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--limestone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); color: inherit; margin: 0; text-wrap: balance; }
h1 { font-weight: 400; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.06; letter-spacing: -0.01em; }
h2 { font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.125rem); line-height: 1.15; }
p { margin: 0; }
a { color: var(--ochre-deep); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.site-header, .hero, .site-footer, .contact-aside { --focus: var(--ochre); }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.hidden { display: none; }

.skip-link {
  position: absolute; left: var(--gutter); top: .5rem; z-index: 20;
  padding: .6rem 1rem; background: var(--ochre); color: var(--ink); font-weight: 600; border-radius: 3px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: .8rem 1.4rem;
  background: var(--ochre); color: var(--ink);
  border: 1.5px solid var(--ochre); border-radius: 3px;
  font: 600 1rem/1.3 var(--sans);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: #D6A443; border-color: #D6A443; }
.btn-ghost { background: transparent; color: var(--limestone); border-color: rgba(197, 208, 211, .6); }
.btn-ghost:hover { background: transparent; border-color: var(--limestone); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- header ---------- */
/* z-index puts the header (and the accessibility panel inside it) above <main>, also when the grayscale
   option gives both of them a filter and so their own stacking contexts. */
.site-header { position: relative; z-index: 10; background: var(--ink); color: var(--limestone); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; padding-block: 1rem; }
.brand { display: block; margin-right: auto; }
.brand img { width: clamp(150px, 20vw, 220px); }
.site-nav { display: flex; gap: 1.75rem; font-size: .9688rem; }
.site-nav a { color: var(--limestone); text-decoration: none; padding-block: .35rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: rgba(197, 208, 211, .6); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ochre); }
.lang-switch { display: flex; align-items: center; gap: .4rem; font-size: .9375rem; color: var(--mist); }
.lang-current { color: var(--limestone); font-weight: 600; }
.lang-sep { color: var(--slate); }
.lang-other { color: var(--mist); text-decoration: none; padding: .35rem .15rem; }
.lang-other:hover { color: var(--limestone); text-decoration: underline; }

/* Phones: logo, language and accessibility on the first row, the three page links on a second row. */
@media (max-width: 759px) {
  .site-nav { order: 3; width: 100%; gap: 1.25rem; padding-top: .65rem; border-top: 1px solid var(--mist-line); }
}

/* ---------- home hero: the board's mock. The sun sits on the furrows. ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--limestone);
  border-top: 1px solid var(--mist-line);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(9.5rem, 17vw, 12rem);
}
.hero::after {   /* furrow bands, widening toward the viewer */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: clamp(4.5rem, 10vw, 7rem);
  background:
    linear-gradient(var(--mist), var(--mist)) 0 0 / 100% 3px no-repeat,
    linear-gradient(var(--mist), var(--mist)) 0 22% / 100% 6px no-repeat,
    linear-gradient(var(--mist), var(--mist)) 0 52% / 100% 10px no-repeat,
    linear-gradient(var(--mist), var(--mist)) 0 100% / 100% 16px no-repeat;
  opacity: .22;
}
.sun {
  position: absolute; right: clamp(1rem, 7vw, 6rem); bottom: clamp(4.5rem, 10vw, 7rem);
  width: clamp(7rem, 22vw, 15rem); aspect-ratio: 2 / 1;
  background: var(--ochre); border-radius: 999px 999px 0 0;
}
.hero-copy { position: relative; z-index: 1; }
.hero-kicker { font-family: var(--serif); color: var(--ochre); font-size: clamp(1.125rem, 2vw, 1.375rem); margin-bottom: 1rem; }
.hero h1 { color: var(--chalk); font-size: clamp(2.125rem, 5.2vw, 3.75rem); max-width: 19ch; margin-bottom: 1.5rem; }
.hero-sub { max-width: 48ch; color: var(--mist); margin-bottom: 2rem; }

/* ---------- sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section h2 { margin-bottom: 1.75rem; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 2px solid var(--ink); }
.fact { padding: 1.25rem 1.5rem 0 0; }
.fact + .fact { padding-left: 1.5rem; border-left: 1px solid var(--mist); }
.fact dt { color: var(--slate); font-size: .9375rem; margin-bottom: .35rem; }
.fact dd { margin: 0; font-family: var(--serif); font-size: 1.3125rem; line-height: 1.3; }
@media (max-width: 759px) {
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 1rem 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--mist); }
}

.band { background: var(--chalk); color: var(--ink); padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--mist); }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.band h2 { margin-bottom: .5rem; }
.band p { color: var(--slate); max-width: 52ch; }

/* ---------- inner pages ---------- */
.page-head { padding-top: clamp(2.75rem, 7vw, 4.5rem); position: relative; }
.page-head + .section { padding-top: clamp(2rem, 5vw, 3rem); }
.page-head.notice { padding-bottom: clamp(3rem, 7vw, 5rem); }
.page-head::after {   /* the furrows again, as a quiet rule under the page title */
  content: ""; display: block;
  width: min(1120px, 100% - 2 * var(--gutter)); height: 1.25rem; margin: clamp(2rem, 5vw, 3rem) auto 0;
  background:
    linear-gradient(var(--mist), var(--mist)) 0 0 / 100% 1px no-repeat,
    linear-gradient(var(--mist), var(--mist)) 0 45% / 100% 2px no-repeat,
    linear-gradient(var(--mist), var(--mist)) 0 100% / 100% 4px no-repeat;
}
.page-head h1 { max-width: 22ch; margin-bottom: 1rem; }
.lede { font-size: 1.1875rem; max-width: var(--measure); color: var(--ink); }
.page-head .lede + p { margin-top: 1.75rem; }
.kicker { color: var(--slate); margin-bottom: .75rem; }
.notice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; }
.notice-grid > div > p + p { margin-top: 1.5rem; }
.h1-like { font-weight: 400; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.06; margin-bottom: 1rem; }
@media (max-width: 759px) { .notice-grid { grid-template-columns: 1fr; } }

.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); margin: 2.25rem 0 .75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 1rem; }
.section .prose h2 { margin-bottom: .75rem; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (max-width: 859px) { .two-col { grid-template-columns: 1fr; } }
.details { background: var(--chalk); border-radius: 4px; padding: clamp(1.25rem, 3vw, 2rem); }
.section .details h2 { font-size: 1.375rem; margin-bottom: 1rem; }
.details-list { margin: 0; }
.details-list div { display: grid; grid-template-columns: 10rem 1fr; gap: .25rem 1rem; padding-block: .7rem; border-top: 1px solid var(--mist); }
.details-list dt { color: var(--slate); }
.details-list dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 479px) { .details-list div { grid-template-columns: 1fr; } }

/* ---------- contact form ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 859px) { .contact-layout { grid-template-columns: 1fr; } }
.form-panel { background: var(--chalk); border-radius: 4px; padding: clamp(1.25rem, 3vw, 2.25rem); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.25rem; }
.form > p, .form-summary, .field-wide, .form-actions { grid-column: 1 / -1; }
@media (max-width: 599px) { .form { grid-template-columns: 1fr; } }
.form-note { color: var(--slate); font-size: .9375rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field label { font-weight: 600; font-size: .9688rem; }
.field input:not([type="checkbox"]), .field textarea {
  width: 100%; padding: .7rem .8rem;
  font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--slate); border-radius: 3px;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; }
.field-consent { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; align-items: start; }
.field-consent input { width: 1.25rem; height: 1.25rem; margin: .2rem 0 0; accent-color: var(--ink); }
.field-consent label { font-weight: 400; }
.field-consent .field-error { grid-column: 1 / -1; }
.field-error { color: var(--error); font-size: .9375rem; font-weight: 500; }
.field-error::before { content: "! "; content: "! " / ""; font-weight: 700; }
[aria-invalid="true"] { border-color: var(--error) !important; border-width: 2px !important; }
.form-summary { padding: .85rem 1rem; border-left: 4px solid var(--error); background: #fff; color: var(--error); font-weight: 600; }
.form-summary[hidden], .field-error[hidden] { display: none; }
.form-actions { padding-top: .25rem; }

.contact-aside { background: var(--ink); color: var(--mist); border-radius: 4px; padding: clamp(1.25rem, 3vw, 2rem); }
.contact-aside img { width: 56px; height: 56px; margin-bottom: 1.25rem; background: var(--limestone); border-radius: 50%; box-shadow: 0 0 0 4px var(--limestone); }
.section .contact-aside h2 { color: var(--chalk); font-size: 1.375rem; margin-bottom: .75rem; }
.contact-aside p + p { margin-top: .35rem; }
.aside-strong { color: var(--limestone); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--mist); font-size: .9375rem; border-top: 1px solid var(--mist-line); }
.footer-inner { padding-block: clamp(2.5rem, 6vw, 3.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 2rem 3rem; align-items: start; }
@media (max-width: 859px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { width: 180px; margin-bottom: 1.25rem; }
.footer-company p + p { margin-top: .2rem; }
.footer-strong { color: var(--limestone); font-weight: 600; }
.footer-ids { margin: 0; }
.footer-ids div + div { margin-top: .35rem; }
.footer-ids dt, .footer-ids dd { display: inline; margin: 0; }
.footer-ids dd { color: var(--limestone); font-variant-numeric: tabular-nums; }
.footer-links { display: flex; flex-direction: column; gap: .35rem; }
.footer-links a { color: var(--mist); text-decoration: none; }
.footer-links a:hover { color: var(--limestone); text-decoration: underline; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--mist-line); font-size: .875rem; }

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