/* Aphka Corp — site styles.
   Tokens mirror brand/palette.json. No external requests: fonts are self-hosted. */

@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/ebgaramond-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/ebgaramond-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/ebgaramond-semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --navy: #12243B;
  --gold: #BF8840;
  --paper: #FFFFFF;
  --grey: #5A5F6A;
  --wire: #E4E1DA;

  --serif: "EB Garamond", Georgia, "Times New Roman", serif;

  --step--1: clamp(0.95rem, 0.92rem + 0.15vw, 1.05rem);
  --step-0:  clamp(1.06rem, 1.00rem + 0.30vw, 1.22rem);
  --step-1:  clamp(1.30rem, 1.18rem + 0.60vw, 1.65rem);
  --step-2:  clamp(1.75rem, 1.45rem + 1.50vw, 2.75rem);
  --step-3:  clamp(2.20rem, 1.55rem + 3.10vw, 3.90rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 34rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

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

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; z-index: 20;
}
.skip:focus { left: 1rem; top: 1rem; }

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

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--wire);
  background: var(--paper);
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(0.9rem, 1.6vw, 1.4rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand-mark { width: 2.05rem; height: 2.15rem; color: var(--gold); flex: none; }
.brand-name {
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: 0.045em;
}

.nav { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav a {
  text-decoration: none;
  font-size: var(--step--1);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--grey);
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a:focus-visible { color: var(--navy); border-bottom-color: var(--gold); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.2rem, 5vw, 3.8rem) clamp(1.6rem, 3vw, 2.6rem); }

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-mark {
  width: clamp(5rem, 9vw, 7rem);
  height: auto;
  color: var(--gold);
  margin-bottom: clamp(1rem, 2vw, 1.6rem);
}

.wordmark {
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0.015em;
  margin: 0;
}

/* the hairline from the card, kept as a web device */
.wordmark::after {
  content: "";
  display: block;
  width: clamp(2.6rem, 5vw, 3.6rem);
  height: 2px;
  background: var(--gold);
  margin: clamp(0.9rem, 1.8vw, 1.3rem) auto 0;
}

.motto {
  font-style: italic;
  /* gold on white is 3.1:1 — kept for identity, so it must stay in "large text" territory */
  font-size: clamp(1.6rem, 1.35rem + 1.0vw, 2rem);
  color: var(--gold);
  margin: clamp(0.9rem, 1.8vw, 1.2rem) 0 0;
}

.lede {
  max-width: 31rem;
  margin: clamp(1.1rem, 2.4vw, 1.7rem) auto 0;
  color: var(--grey);
  font-size: var(--step-1);
  line-height: 1.45;
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin: clamp(1.5rem, 3vw, 2.1rem) 0 0;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-size: var(--step-0);
  letter-spacing: 0.02em;
  min-width: 12.5rem;
  text-align: center;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn:hover, .btn:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--navy); }

.btn--quiet { background: transparent; color: var(--navy); }
.btn--quiet:hover, .btn--quiet:focus-visible { background: transparent; border-color: var(--gold); color: var(--gold); }

/* ---------- sections ---------- */
.section { padding-block: clamp(2.6rem, 5.5vw, 4.6rem); }
.section + .section { border-top: 1px solid var(--wire); }

.eyebrow {
  margin: 0;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow::after {
  content: "";
  display: block;
  width: 2.2rem; height: 2px;
  background: var(--gold);
  margin-top: 0.65rem;
}

.section-lede {
  font-size: var(--step-1);
  max-width: 34rem;
  text-wrap: balance;
  margin: 0.9rem 0 clamp(1.8rem, 3.4vw, 2.8rem);
}

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(2rem, 6vw, 6rem);
}

.col h3 {
  font-size: var(--step-1);
  font-weight: 600;
  margin: 0 0 0.7rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--wire);
}

.col p { margin: 0 0 1rem; color: var(--grey); max-width: 30rem; }
.col p:last-child { margin-bottom: 0; }

/* ---------- navy band ---------- */
.band {
  background: var(--navy);
  color: #F4F1EA;
  padding-block: clamp(3.2rem, 7vw, 6rem);
}

.eyebrow--light { color: var(--gold); }

.band-title {
  font-size: var(--step-2);
  font-weight: 600;
  margin: 0.8rem 0 1.2rem;
  line-height: 1.1;
}

.band-text {
  max-width: 42rem;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  color: #D9D4C7;
}

.creds {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 0.7rem 2.5rem;
  max-width: 52rem;
}

.creds li {
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  color: #EDE9DF;
  padding-left: 1.35rem;
  position: relative;
}
.creds li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 0.6rem; height: 1px;
  background: var(--gold);
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: clamp(1.6rem, 3vw, 2.6rem);
  margin: 0;
  padding-top: clamp(1rem, 2vw, 1.6rem);
  border-top: 1px solid var(--wire);
}

.contact-grid dt {
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}

.contact-grid dd {
  margin: 0.45rem 0 0;
  font-size: var(--step-1);
  line-height: 1.35;
}
.contact-grid dd a { text-decoration: none; border-bottom: 1px solid var(--gold); }
.contact-grid dd a:hover { color: var(--gold); }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--wire);
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  color: var(--grey);
  font-size: var(--step--1);
}
.foot-row p { margin: 0; }
.fineprint { max-width: 34rem; }

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

@media (max-width: 40rem) {
  .head-row { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .nav { width: 100%; justify-content: space-between; }
  .foot-row { flex-direction: column; }
}
