/* DELEA company site. Colours and type from the DELEA app's tokens
   (delea-base packages/ui/src/tokens/tokens.css). Self-hosted fonts only. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/fraunces-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/archivo-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-2: #F3EDE3;
  --border: #E4DACB;
  --text: #241C17;
  --text-muted: #6F6152;
  --brand: #6B2737;
  --brand-deep: #4A1B26;
  --gold: #B8935B;
  --gold-soft: #EBDCC3;
  --link: #6B2737;
  --button-text: #FFFFFF;
  --header-bg: #1B1511;
  --header-text: #FAF3E6;
  --header-muted: #C7BBAC;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15110D;
    --surface: #1E1812;
    --surface-2: #1E1812;
    --border: #3A2E22;
    --text: #EFE6D8;
    --text-muted: #B4A896;
    --link: #D9B57E;
    --brand: #D9B57E;
    --brand-deep: #EBDCC3;
    --button-text: #1B1511;
    --gold-soft: #3A2E1E;
    --header-bg: #0F0C09;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2rem, 6vw, 3.1rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.45rem, 4vw, 1.9rem); margin: 0 0 0.85rem; }
h3 { font-size: 1.15rem; font-weight: 500; margin: 0 0 0.4rem; }
p { margin: 0 0 1rem; }

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
/* Same left edge as the header and hero; only the line length is limited. */
.narrow > * { max-width: 44rem; }

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

/* Header: the app's dark sidebar colours with the gold-ring "D" mark. */
.site-header { background: var(--header-bg); border-bottom: 1px solid rgba(184, 147, 91, 0.25); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 0.85rem; padding-bottom: 0.85rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.15rem; color: #EBDCC3;
  flex-shrink: 0;
}
.brand-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; letter-spacing: 0.08em; color: var(--header-text); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-header nav a { color: var(--header-muted); text-decoration: none; font-size: 0.95rem; padding: 0.25rem 0; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--header-text); text-decoration: underline; text-decoration-color: var(--gold); }

/* Home */
.hero { padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(2rem, 6vw, 4rem); }
.hero h1 { max-width: 20ch; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 0.75rem; }
.lede { font-size: clamp(1.1rem, 2.6vw, 1.3rem); max-width: 40rem; }
.hero-actions { margin: 1.75rem 0 1rem; }
.fine { color: var(--text-muted); font-size: 0.9rem; }

.button {
  display: inline-block;
  background: var(--brand); color: var(--button-text);
  border: 1px solid var(--brand); border-radius: 4px;
  padding: 0.7rem 1.3rem; font-weight: 600; text-decoration: none;
}
.button:hover { background: var(--brand-deep); border-color: var(--brand-deep); }

.section { padding: clamp(2.5rem, 7vw, 4rem) 0; }
.band { padding: clamp(2.5rem, 7vw, 4rem) 0; background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.features {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.features li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 1.25rem 1.25rem 0.5rem; border-top: 3px solid var(--gold);
}
.features p { color: var(--text-muted); font-size: 0.98rem; }

/* Inner pages */
.page { padding: clamp(2rem, 6vw, 3.5rem) 0 clamp(2.5rem, 7vw, 4rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.legal li { margin-bottom: 0.35rem; }
.updated { color: var(--text-muted); font-size: 0.9rem; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin: 1.5rem 0 2rem; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) {
  .facts { grid-template-columns: 1fr; gap: 0.15rem; }
  .facts dd { margin-bottom: 0.75rem; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 1.75rem 0 2.25rem; color: var(--text-muted); font-size: 0.9rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.footer-row p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; }
.site-footer a { color: var(--text-muted); }
.site-footer a[aria-current="page"] { color: var(--text); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
