/* Segnatura Learning: shared styles.
   One narrow column, set like a book page. No cards, shadows, gradients or animation. */

/* Crimson Pro, self-hosted (Latin only). One variable file covers weights 400 and 600; italic is 400. */
@font-face {
  font-family: "Crimson Pro";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/crimson-pro-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Crimson Pro";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/crimson-pro-latin-italic.woff2") format("woff2");
}

:root {
  --paper: #FAF6EC;
  --ink: #1D1A16;
  --soft-ink: #4A4438;
  --navy: #14254D;
  --gold: #8A6A28;
  --rule: #D8CDB6;

  --font: "Crimson Pro", Georgia, "Times New Roman", serif;
  --column: 40rem; /* about 640px */
  --gutter: 1.25rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.25rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-weight: 400; line-height: 1.15; margin: 0; color: var(--ink); }

p, ul, dl { margin: 0 0 1.1em; }
p:last-child, ul:last-child, dl:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--navy); color: var(--paper); padding: 0.5rem 0.9rem;
}
.skip-link:focus { top: 1rem; }

/* ---------- Column ---------- */

.column { max-width: calc(var(--column) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */

.site-header { padding: 2rem 0 1.5rem; border-bottom: 1px solid var(--rule); }
.site-header .bar {
  max-width: calc(var(--column) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
}
.wordmark { color: var(--ink); text-decoration: none; line-height: 1; }
.wordmark:hover { color: var(--ink); }
.wordmark .name { display: block; font-size: 1.4rem; letter-spacing: 0.32em; }
.wordmark .sub { display: block; font-size: 0.7rem; letter-spacing: 0.44em; color: var(--soft-ink); margin-top: 0.45rem; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.site-nav li { font-size: 1.05rem; }
.site-nav li + li::before { content: "\00B7"; color: var(--soft-ink); padding: 0 0.55rem; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--navy); text-decoration: underline; }

/* ---------- Sections ---------- */

main section { padding: 4.5rem 0; border-top: 1px solid var(--rule); }
main section:first-child { border-top: 0; }

.label {
  font-size: 1rem;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin: 0 0 1.75rem;
  font-weight: 400;
}

.hero { padding: 5.5rem 0 5rem; }
.hero h1 { font-size: clamp(2.75rem, 2rem + 4vw, 4.25rem); margin-bottom: 1.5rem; }
.lede { font-size: 1.3rem; color: var(--soft-ink); margin-bottom: 2.25rem; }
.note { font-size: 1rem; color: var(--soft-ink); margin-top: 1.1rem; }

.page-title { font-size: clamp(2.5rem, 1.9rem + 3vw, 3.6rem); margin-bottom: 2.25rem; }
h2.heading { font-size: clamp(1.75rem, 1.5rem + 1.3vw, 2.25rem); margin: 0 0 1.25rem; }
* + h2.heading { margin-top: 3rem; }

.lines p { margin: 0 0 0.3em; }
.lines { margin-bottom: 1.1em; }

.faq dt { font-weight: 600; margin-top: 1.6rem; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 0.2rem 0 0; }

.signoff { margin-top: 2rem; }
.back { margin-top: 2.5rem; font-size: 1.05rem; }

.cta { margin-top: 2.5rem; }

/* ---------- Button: the only boxed element ---------- */

.button {
  display: inline-block;
  background: var(--navy);
  color: var(--paper);
  font-family: var(--font);
  font-size: 1.15rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.button:hover { color: var(--paper); background: #0D1A38; }

/* ---------- Photo ---------- */

.about-photo { margin: 0 0 2.75rem; }
.about-photo img { width: 100%; border-radius: 4px; }

/* ---------- Lists ---------- */

.plain-list { list-style: none; padding: 0; }
.plain-list li { padding: 0.7rem 0; border-top: 1px solid var(--rule); }
.plain-list li:last-child { border-bottom: 1px solid var(--rule); }

/* ---------- Contact form ---------- */

.contact-form { margin: 2rem 0 2rem; }
.field { margin-bottom: 1.5rem; }
.field label { display: block; font-size: 1.05rem; color: var(--soft-ink); margin-bottom: 0.15rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 1.15rem; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--soft-ink); border-radius: 0;
  padding: 0.4rem 0;
}
.field select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding-right: 1.75rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231D1A16' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 0.25rem center;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-bottom: 2px solid var(--navy); padding-bottom: calc(0.4rem - 1px);
}
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

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

.site-footer { border-top: 1px solid var(--rule); padding: 2.5rem 0 3.5rem; font-size: 0.95rem; color: var(--soft-ink); }
.site-footer p { margin: 0 0 0.3rem; }
.site-footer a { color: var(--soft-ink); }

/* ---------- Privacy policy ---------- */

.policy h2 { font-size: clamp(1.5rem, 1.35rem + 0.8vw, 1.85rem); margin: 2.5rem 0 1rem; }
.policy ul { padding-left: 1.3rem; }
.policy li { margin-bottom: 0.4rem; }
.policy table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 1.1rem; }
.policy th, .policy td { text-align: left; vertical-align: top; padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--rule); }
.policy th { font-weight: 600; border-bottom-color: var(--soft-ink); }

/* ---------- Phones ---------- */

@media (max-width: 600px) {
  body { font-size: 1.15rem; }
  .site-header { padding: 1.5rem 0 1.25rem; }
  .site-header .bar { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .site-nav li { font-size: 1rem; }
  .site-nav li + li::before { padding: 0 0.45rem; }
  main section { padding: 3.25rem 0; }
  .hero { padding: 3.5rem 0 3.25rem; }
  .lede { font-size: 1.2rem; }
  .button { display: block; text-align: center; }

  /* Section 6 table: each row becomes a short stack, divided by rules */
  .policy table, .policy tbody, .policy tr, .policy td { display: block; width: 100%; }
  .policy thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .policy tr { border-bottom: 1px solid var(--rule); padding: 0.6rem 0; }
  .policy td { border: 0; padding: 0.15rem 0; }
  .policy td::before {
    content: attr(data-label); display: block;
    font-size: 0.85rem; font-variant: small-caps; text-transform: lowercase; letter-spacing: 0.14em; color: var(--gold);
  }
}
