/* Danna Leigh Davenport Designs — static preview. Phone-first. No backend. */
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-italic-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1b2a4a;
  --ink: #121c33;
  --powder: #9eb7d4;
  --powder-wash: #d5e2ef;
  --gold: #c4a35a;
  --gold-deep: #a6863e;
  --paper: #f7f4ee;
  --paper-2: #efe8dc;
  --white: #fffcf7;
  --text: #1b2a4a;
  --muted: #4a5874;
  --max: 68rem;
  --space: 1.15rem;
  --radius: 1.15rem;
  --pill: 999px;
  --display: "Playfair Display", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Newsreader", Georgia, "Times New Roman", serif;
  --header-h: 4.15rem;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--paper);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  color: var(--navy);
}
h1 { font-size: clamp(2.35rem, 9vw, 4.35rem); }
h2 { font-size: clamp(1.55rem, 4vw, 2.15rem); }
h3 { font-size: 1.2rem; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 40;
  padding: 0.4rem 0.7rem;
  background: var(--navy);
  color: var(--paper);
  text-decoration: none;
  border-radius: 0.4rem;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
  padding: 0.55rem var(--space);
  background: var(--navy);
  color: var(--paper);
  border-bottom: 1px solid rgba(196, 163, 90, 0.35);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  min-width: 0;
}
.crest { width: 2.35rem; height: auto; flex: none; }
.crest-sm { width: 1.85rem; }
.wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}
.wordmark-firm {
  font-family: var(--display);
  font-size: clamp(0.78rem, 2.8vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--paper);
}
.wordmark-sub {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--powder);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.45rem 1.15rem;
  border: 0;
  border-radius: var(--pill);
  background: var(--gold);
  color: var(--navy);
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--navy);
  flex: none;
}
.btn:hover { background: #d4b56e; color: var(--navy); }
.btn-header {
  min-height: 2.45rem;
  padding-inline: 0.95rem;
  font-size: 0.88rem;
}

.fold { padding: 1.25rem 0 1.75rem; }
.fold-grid { display: grid; gap: 1.25rem; }
.fold-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 0 0 1px rgba(196, 163, 90, 0.45), 0 18px 40px rgba(27, 42, 74, 0.12);
}
.fold-photo img {
  width: 100%;
  height: min(48vh, 22rem);
  object-fit: cover;
  object-position: center 18%;
}
.kicker {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.kicker-gold { color: var(--gold); }
.titles {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede {
  margin: 0 0 1.15rem;
  font-size: 1.2rem;
  max-width: 28rem;
  color: var(--muted);
}
.cta-row { margin: 0; }

.logo-bar {
  margin: 0;
  padding: 0.85rem var(--space) 1.1rem;
  background: var(--navy);
  border-top: 1px solid rgba(196, 163, 90, 0.35);
  border-bottom: 1px solid rgba(196, 163, 90, 0.35);
}
.logo-bar img {
  width: min(100%, 52rem);
  margin-inline: auto;
  border-radius: var(--pill);
}

.band { padding: 2.4rem 0 2.7rem; }
.band-powder { background: var(--powder-wash); }
.band-navy {
  background: var(--navy);
  color: var(--paper);
}
.band-navy h2,
.band-navy h3 { color: var(--paper); }
.section-lede {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  color: var(--muted);
}
.band-navy .section-lede { color: var(--powder); }

.ornament {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.65rem;
}
.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
  max-width: 4.5rem;
}
.ornament img { width: 0.85rem; height: auto; }

/* House scene: two tips as stacked beats, not a 3-up dump */
.tip {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.35rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(27, 42, 74, 0.06);
}
.tip:last-of-type { margin-bottom: 0; }
.tip figure { margin: 0; }
.tip img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
}
.tip-copy { padding: 0 1.15rem 1.2rem; }
.tip .num {
  margin: 0 0 0.2rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--gold-deep);
}
.tip h3 { margin-bottom: 0.4rem; }
.tip p:not(.num) { margin: 0; color: var(--muted); }

/* Dorm scene */
.dorm-intro {
  display: grid;
  gap: 1.15rem;
  margin: 0 0 1.75rem;
}
.dorm-nameplate {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(196, 163, 90, 0.4);
}
.dorm-nameplate img {
  width: 100%;
  height: min(48vh, 22rem);
  object-fit: cover;
  object-position: center 16%;
}
.dorm-intro p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  max-width: 36rem;
}
.dorm-intro p:last-child { margin-bottom: 0; }

.looks {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}
.look {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(27, 42, 74, 0.06);
  padding: 0 0 1.1rem;
  border-top: 3px solid var(--gold);
}
.look figure { margin: 0 0 0.9rem; }
.look img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}
.look h3 { margin: 0 1.05rem 0.4rem; }
.look p { margin: 0 1.05rem; color: var(--muted); }

.dorm-aside {
  margin: 0;
  max-width: 40rem;
  font-size: 1.05rem;
  color: var(--muted);
}

.band-goldline {
  background: var(--paper-2);
  border-top: 1px solid rgba(196, 163, 90, 0.45);
  border-bottom: 1px solid rgba(196, 163, 90, 0.45);
}
.close-wrap { max-width: 40rem; }
.signoff {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  line-height: 1.35;
  color: var(--navy);
  max-width: 32rem;
}
.signoff-2 {
  margin-top: 1.15rem;
  color: var(--gold-deep);
}

.consult-wrap { display: grid; gap: 1.4rem; }
.consult-still {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(196, 163, 90, 0.4);
}
.consult-still img {
  width: 100%;
  height: min(52vh, 28rem);
  object-fit: cover;
  object-position: center 16%;
}
.consult-form {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}
.consult-form p { margin: 0; }
.consult-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--powder);
}
.consult-form input,
.consult-form select,
.consult-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(158, 183, 212, 0.45);
  border-radius: 0.55rem;
  background: #142238;
  color: var(--paper);
}
.consult-form optgroup {
  background: #142238;
  color: var(--gold);
  font-style: normal;
  font-family: var(--display);
}
.consult-form option { color: var(--paper); }
.consult-form textarea { resize: vertical; min-height: 5.5rem; }
.consult-form .btn { width: 100%; }

.received { display: none; }
.received:target {
  display: block;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gold);
  border-radius: 0.55rem;
  color: var(--paper);
  background: rgba(196, 163, 90, 0.12);
}
.consult-form:has(+ .received:target) { display: none; }

.site-footer {
  background: var(--ink);
  color: var(--powder);
  padding: 1.5rem 0 1.75rem;
  border-top: 1px solid rgba(196, 163, 90, 0.28);
}
.footer-grid { display: grid; gap: 0.55rem; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: 0.95rem;
}
.footer-line { margin: 0; font-size: 0.95rem; }

.watches {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.55rem;
}
.watch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold);
  text-decoration: none;
  max-width: 22rem;
}
.watch img {
  width: 3.25rem;
  height: 4.6rem;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 0.4rem;
  flex: none;
  box-shadow: 0 0 0 1px rgba(196, 163, 90, 0.4);
}
.watch:hover { color: var(--paper); text-decoration: underline; }

#house, #dorm, #consult, #close { scroll-margin-top: calc(var(--header-h) + 0.5rem); }

@media (min-width: 720px) {
  .looks { grid-template-columns: repeat(2, 1fr); }
  .btn-header { min-width: 10.5rem; }
  .consult-form .btn { width: auto; }
  .watches { grid-template-columns: repeat(2, minmax(0, 22rem)); }
}

@media (min-width: 880px) {
  .fold { padding: 2rem 0 2.4rem; }
  .fold-grid {
    grid-template-columns: minmax(16rem, 0.9fr) 1.1fr;
    align-items: center;
    gap: 2.4rem;
  }
  .fold-photo img {
    height: min(78vh, 40rem);
    object-position: center 12%;
  }
  .tip {
    grid-template-columns: minmax(14rem, 0.85fr) 1.15fr;
    align-items: stretch;
    margin-bottom: 1.6rem;
  }
  .tip img {
    height: 100%;
    min-height: 18rem;
    aspect-ratio: auto;
  }
  .tip-copy {
    padding: 1.5rem 1.6rem 1.6rem 0.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .tip-flip {
    grid-template-columns: 1.15fr minmax(14rem, 0.85fr);
  }
  .tip-flip figure { order: 2; }
  .tip-flip .tip-copy { padding: 1.5rem 0.4rem 1.6rem 1.6rem; }
  .dorm-intro {
    grid-template-columns: minmax(14rem, 0.7fr) 1.3fr;
    align-items: start;
    gap: 2rem;
  }
  .dorm-nameplate img {
    height: min(62vh, 32rem);
    object-position: center 12%;
  }
  .consult-wrap {
    grid-template-columns: minmax(14rem, 0.8fr) 1.2fr;
    align-items: start;
    gap: 2.2rem;
  }
  .consult-still img { height: 100%; min-height: 28rem; }
}

@media (min-width: 1100px) {
  :root { --space: 1.5rem; }
}
