@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: swap; src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-display: swap; src: url("fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-display: swap; src: url("fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }

:root {
  --navy: #0B1F3A;
  --cream: #F5F1E8;
  --paper: #FBF9F4;
  --muted: #4A5568;
  --rule: #D9D2C3;
  --rule-strong: #0B1F3A;
  --tbc-bg: #FCEFC7;
  --display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --measure: 40rem;
  --ease: 200ms ease-out;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

a {
  color: var(--navy);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-thickness var(--ease), color var(--ease);
  cursor: pointer;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--cream); padding: 0.6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 3.75rem; width: auto; display: block; }
.nav { display: flex; gap: 1.75rem; }
.nav a {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration-color: transparent;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav a:hover, .nav a[aria-current="page"] { text-decoration-color: currentColor; }

/* Home */
.hero { padding-block: clamp(4rem, 10vw, 7.5rem) clamp(3rem, 7vw, 5rem); text-align: center; }
.hero img { width: 5.5rem; height: auto; display: block; margin: 0 auto 2.25rem; }
.hero .lede { margin-inline: auto; }
.hero h1.lede { font-weight: 500; }
.lede {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  line-height: 1.3;
  max-width: 36rem;
  margin: 0 0 1.25rem;
}
.sub { color: var(--muted); max-width: 34rem; margin: 0 auto; }

.divider { width: 3rem; height: 1px; background: var(--rule-strong); border: 0; margin: 0 auto; }

.products { padding-block: clamp(3rem, 7vw, 4.5rem); text-align: center; }
.products .eyebrow { font-family: var(--body); font-weight: 400; font-size: 0.8rem; margin: 0 0 2rem; }
.product-list { list-style: none; padding: 0; margin: 0 auto; max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 20rem)); justify-content: center; gap: 1.5rem; }
.product-list li + li { margin-top: 0; }
.product { background: var(--paper); border: 1px solid var(--rule); padding: 2rem 1.75rem; transition: border-color var(--ease); }
.product:hover { border-color: var(--navy); }
.product h3 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; line-height: 1.2; margin: 0 0 0.5rem; }
.product p { color: var(--muted); margin: 0 auto 1.25rem; }
.product a { font-size: 0.9rem; letter-spacing: 0.04em; min-height: 44px; display: inline-flex; align-items: center; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: 3rem 4rem; padding-block: clamp(3rem, 7vw, 5rem); }
.cols h2 { margin-top: 0; }

/* Legal pages */
.doc { padding-block: clamp(3rem, 7vw, 5rem); }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.75rem; }
.updated { color: var(--muted); font-style: italic; margin: 0.25rem 0 0; }
.summary { max-width: var(--measure); background: var(--paper); border: 1px solid var(--rule); padding: 1.25rem 1.5rem; margin: 2.5rem 0 0; }
.summary p { margin: 0; }

h1, h2, .lede, .sub { text-wrap: balance; }
h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 1.7rem + 2vw, 3rem); line-height: 1.1; margin: 0; }
h2 { font-family: var(--display); font-weight: 600; font-size: 1.65rem; line-height: 1.25; margin: 3rem 0 0.75rem; }
h3 { font-family: var(--body); font-weight: 600; font-size: 1.0625rem; margin: 1.75rem 0 0.4rem; }
p, ul, ol { max-width: var(--measure); }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.4rem; }
strong { font-weight: 600; }

/* Contents list on legal pages */
.toc { max-width: var(--measure); margin: 2rem 0 0; padding: 1.25rem 1.5rem; border: 1px solid var(--rule); }
.toc-title { margin: 0 0 0.5rem; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.4rem; columns: 2 16rem; column-gap: 2rem; }
.toc li { margin: 0 0 0.4rem; break-inside: avoid; }
.doc h2, .doc h3 { scroll-margin-top: 1.5rem; }

/* Company details */
.details { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); margin: 1.25rem 0 0; max-width: var(--measure); background: var(--paper); border: 1px solid var(--rule); }
.details dt, .details dd { margin: 0; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--rule); overflow-wrap: break-word; }
.details dt { color: var(--muted); font-size: 0.95rem; white-space: nowrap; }
.details dt:last-of-type, .details dd:last-of-type { border-bottom: 0; }

.note { max-width: var(--measure); border-left: 2px solid var(--navy); padding: 0.1rem 0 0.1rem 1.1rem; margin: 1.5rem 0; }

/* Placeholder marker. Every .tbc must be filled in and removed before going live. */
.tbc { background: var(--tbc-bg); padding: 0 0.3em; border-radius: 2px; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); font-size: 0.875rem; color: var(--muted); }
.site-foot .wrap { padding-block: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; }
.site-foot p { margin: 0; max-width: 38rem; }
.site-foot nav { display: flex; gap: 1.25rem; }
.site-foot a { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 36rem) {
  .site-head .wrap { justify-content: center; }
  .brand img { height: 2.8rem; }
  .details { grid-template-columns: 1fr; }
  .details dt { border-bottom: 0; padding-bottom: 0; }
  .details dd { padding-top: 0.15rem; }
}

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

@media print {
  .site-head nav, .skip { display: none; }
  body { background: #fff; }
  .tbc { background: none; }
}
