/* CHOH LUX — site styles
   Plain CSS, no external resources. System font stacks only. */

:root {
  color-scheme: light;

  /* Core palette */
  --ivory: #F7F4EE;
  --charcoal: #3C3B38;
  --gold: #B59A5A;          /* decorative only: 2.5:1 on ivory, never for text */

  /* Derived tones (contrast measured against --ivory) */
  --text: var(--charcoal);   /* 10.2:1 */
  --text-muted: #5F5C56;     /* 6.1:1 */
  --gold-text: #7D6A3C;      /* 4.8:1, for small labels */
  --rule: #DCD5C7;           /* thin separators */
  --surface: #FBF9F5;

  /* Type */
  --font-serif: ui-serif, "New York", "Iowan Old Style", "Apple Garamond", Baskerville, Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --gutter: 1.25rem;
  --page-max: 68rem;
  --measure: 38rem;
  --radius: 10px;
}

@media (min-width: 48em) {
  :root { --gutter: 2.5rem; }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }

/* Links */
a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.2em;
}

a:hover { text-decoration-color: currentColor; }

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

/* Skip link */
.skip-link {
  position: absolute;
  top: 0.75rem;
  left: var(--gutter);
  z-index: 10;
  padding: 0.625rem 1rem;
  background: var(--charcoal);
  color: var(--ivory);
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.skip-link:focus-visible { outline-color: var(--gold); }

/* Container */
.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-block: 1.25rem 0.5rem;
}

.wordmark {
  align-self: flex-start;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  line-height: 44px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1rem;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-nav a:hover { color: var(--text); }

.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration-line: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.45em;
}

@media (min-width: 48em) {
  .site-header .wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-block: 1rem;
  }

  .site-nav ul { column-gap: 1.75rem; }
}

/* Main */
main {
  flex: 1;
  padding-block: 3.5rem 5rem;
}

@media (min-width: 48em) {
  main { padding-block: 6rem 7rem; }
}

main:focus { outline: none; }

/* Typography */
.eyebrow {
  margin-bottom: 1.25rem;
  color: var(--gold-text);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 6vw + 0.5rem, 3.75rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2vw + 1rem, 1.875rem);
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.lede {
  max-width: var(--measure);
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: clamp(1.125rem, 0.5vw + 1rem, 1.3125rem);
  line-height: 1.55;
}

.meta {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Status */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 2.25rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9375rem;
}

.status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
}

/* Sections */
.section {
  margin-top: 4.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

@media (min-width: 48em) {
  .section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 2.5rem;
    margin-top: 6rem;
  }
}

.section > h2 { margin-bottom: 1.25rem; }

.section-body {
  max-width: var(--measure);
}

.section-body > * + * { margin-top: 1rem; }

.section-body p { color: var(--text-muted); }

/* Principles list: rows separated by thin rules */
.section-body > .principles {
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
}

.principles li {
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.principles li:first-child { padding-top: 0; }

.principles li:last-child { border-bottom: 0; }

.principles p {
  margin-top: 0.25rem;
  color: var(--text-muted);
}

/* Prose pages (privacy, terms) */
.prose {
  max-width: var(--measure);
}

.prose-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.prose-section:first-of-type { margin-top: 3.5rem; }

.prose-section h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.375rem, 1vw + 1rem, 1.625rem);
}

.prose-section > * + * { margin-top: 1rem; }

.prose-section p,
.prose-section li { color: var(--text-muted); }

.prose-section ul {
  padding-left: 1.25rem;
}

.prose-section li + li { margin-top: 0.5rem; }

.prose-section li::marker { color: var(--gold); }

/* Contact block: a bounded surface for email addresses */
.contact-list {
  margin-top: 3rem;
  max-width: var(--measure);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-list > div {
  padding: 1.25rem 1.5rem;
}

.contact-list > div + div { border-top: 1px solid var(--rule); }

.contact-list dt {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.contact-list dd {
  margin-top: 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.3125rem;
  overflow-wrap: anywhere;
}

.contact-list dd a {
  display: inline-block;
  padding-block: 0.25rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: 2rem 2.5rem;
}

.footer-brand {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.5rem;
  padding: 0;
  list-style: none;
}

.site-footer ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.site-footer ul a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--gold);
}

@media (min-width: 48em) {
  .site-footer .wrap {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}

/* Motion: only subtle color transitions, and only when welcome */
@media (prefers-reduced-motion: no-preference) {
  a { transition: color 150ms ease, text-decoration-color 150ms ease; }
}
