/* Delmova — shared stylesheet */

:root {
  --bg: #fcfcfb;
  --surface: #f4f4f1;
  --text: #24262b;
  --text-muted: #55585f;
  --accent: #0f6f66;          /* deep teal — 6:1 on --bg */
  --accent-strong: #0a534c;
  --rule: #e3e3de;

  --measure: 720px;
  --gutter: clamp(1.25rem, 5vw, 2rem);

  --step-0: 1.0625rem;                          /* 17px body */
  --step-1: clamp(1.1875rem, 0.5vw + 1.06rem, 1.375rem);
  --step-2: clamp(1.5rem, 1.2vw + 1.2rem, 1.875rem);
  --step-3: clamp(2.125rem, 4vw + 1.1rem, 3.25rem);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Layout ------------------------------------------------------------- */

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

main {
  display: grid;
  gap: clamp(3rem, 7vw, 4.5rem);
  padding-block: clamp(3.5rem, 10vw, 6.5rem) clamp(4rem, 10vw, 7rem);
}

main > section {
  display: grid;
  gap: 0.75rem;
}

/* Type --------------------------------------------------------------- */

h1,
h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-3);
  max-width: 14ch;
}

h2 {
  font-size: var(--step-2);
}

p {
  margin: 0;
  max-width: 62ch;
  text-wrap: pretty;
}

.lede {
  font-size: var(--step-1);
  color: var(--text-muted);
  line-height: 1.55;
}

.meta {
  color: var(--text-muted);
}

/* Multi-paragraph body copy (privacy policy, long sections). */
.prose {
  display: grid;
  gap: 1.15rem;
}

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

.site-header {
  border-bottom: 1px solid var(--rule);
  padding-block: 1.5rem;
}

.wordmark {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* On subpages the wordmark links home; it should still read as the wordmark. */
.wordmark a {
  color: inherit;
  text-decoration: none;
}

.wordmark a:hover {
  color: var(--accent-strong);
}

/* Hero --------------------------------------------------------------- */

.hero {
  gap: 1.5rem;
}

.hero-action {
  margin-top: 0.5rem;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

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

main > section:not(.hero) h2 {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

/* Same hairline for a section that carries no h2 to hang it on — the
   privacy policy, whose body cannot take an added heading. */
main > section.prose {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.contact p {
  font-size: var(--step-1);
  line-height: 1.55;
}

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

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Standalone links, not links in a sentence — give them a real hit box. */
.link-list a {
  display: inline-block;
  padding-block: 0.4rem;
}

.faq {
  display: grid;
  gap: 1.5rem;
  margin: 0;
}

.faq > div {
  display: grid;
  gap: 0.3rem;
}

.faq dt {
  font-weight: 600;
}

.faq dd {
  margin: 0;
  max-width: 62ch;
  color: var(--text-muted);
}

/* Links -------------------------------------------------------------- */

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

a:hover {
  color: var(--accent-strong);
}

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: var(--gutter);
  top: 0.75rem;
  z-index: 1;
  padding: 0.5rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 2px;
}

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

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 2rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent-strong);
}
