/* LOOK Darling — marigold (1a). See docs/design_handoff_look_darling_site/README.md
   for the full spec this file implements. */

/* ---- Fonts (self-hosted, OFL-licensed — see static/fonts/*-LICENSE.txt) ---- */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-300-italic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ---- */

:root {
  --paper: #FBF7EF;
  --ink: #1C1A17;
  --ink-muted: #4A463E;
  /* ink-faint and marigold-deep are darkened from the original design handoff spec
     (#7A7468 / #B07708) to clear WCAG AA 4.5:1 on --paper for the normal-size text
     they're used for (footer line; eyebrow label and wordmark italic). */
  --ink-faint: #706A5F;
  --marigold: #E8A317;
  --marigold-hover: #D4930F;
  --marigold-deep: #8C5F06;
  --on-marigold: #3A3225;
  --on-ink: rgba(251, 247, 239, 0.75);
  --ink-hover: #332F29;
  --hairline: rgba(28, 26, 23, 0.1);
  --border: rgba(28, 26, 23, 0.25);
  --border-hover: rgba(28, 26, 23, 0.5);

  --font-serif: "Newsreader", ui-serif, Georgia, serif;
  --font-sans: "Work Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, Menlo, monospace;

  --page-pad: 44px;
  --max-width: 1100px;
}

/* ---- Reset ---- */

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

section[id] {
  scroll-margin-top: 88px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

/* ---- Focus ---- */

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--marigold-deep);
  outline-offset: 2px;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--font-sans);
  line-height: 1;
  white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn:hover { text-decoration: none; }

.btn-pill {
  background: var(--marigold);
  color: var(--ink);
  padding: 10px 18px;
  font-weight: 500;
  font-size: 14px;
}
.btn-pill:hover { background: var(--marigold-hover); }

.btn-primary {
  background: var(--marigold);
  color: var(--ink);
  padding: 15px 26px;
  font-weight: 600;
  font-size: 15px;
}
.btn-primary:hover { background: var(--marigold-hover); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 15px 26px;
  font-weight: 400;
  font-size: 15px;
}
.btn-secondary:hover { border-color: var(--border-hover); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
  gap: 24px;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink);
  flex-shrink: 0;
}
.wordmark em {
  font-style: italic;
  color: var(--marigold-deep);
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-muted);
}
.site-nav a:not(.btn):hover { text-decoration: underline; }

/* ---- Typography roles ---- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marigold-deep);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 1.15;
  font-weight: 400;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 400;
}

.deck {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 58ch;
  text-wrap: pretty;
}

.band-body {
  font-size: 16px;
  line-height: 1.7;
  max-width: 46ch;
  text-wrap: pretty;
}

.body-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* ---- Photo slots ---- */

.photo-slot {
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.photo-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-slot--hero {
  aspect-ratio: 4 / 5;
}

.photo-slot--hero img {
  object-position: top;
}

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

.hero__row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 56px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero__copy h1 {
  font-family: var(--font-serif);
  font-size: 52px;
  line-height: 1.08;
  font-weight: 400;
  text-wrap: pretty;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  padding-top: 6px;
  flex-wrap: wrap;
}

/* ---- Services ---- */

.services .section-heading {
  text-align: center;
  padding-top: 8px;
  padding-bottom: 32px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-bottom: 60px;
}

.service-card {
  border-top: 2px solid var(--marigold);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---- How I Work band (full-bleed marigold) ---- */

.how-band {
  background: var(--marigold);
}

.how-band__row {
  padding-top: 56px;
  padding-bottom: 56px;
}

/* Applied only when how_it_works.photo is set in front matter — see layouts/index.html.
   Without it, .how-band__copy is the row's sole child and reads full-width. */
.how-band__row--split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.how-band__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 14px;
}

.how-band .band-body {
  color: var(--on-marigold);
  max-width: 60ch;
}

.how-band__statement {
  /* A solid color, not var(--ink-hover) faded with opacity -- opacity's actual
     contrast depends on whatever sits behind it, so it silently stops meeting
     WCAG AA's 4.5:1 if this class ever ends up on a different background. This
     is measured at 5.07:1 against --marigold on its own, regardless of context. */
  color: #453B27;
}

.how-band__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.how-band__item {
  padding-left: 14px;
  border-left: 2px solid var(--ink);
}

.photo-slot--how {
  aspect-ratio: 1 / 1;
}

/* ---- About LOOK Darling ---- */

.about-look {
  border-top: 1px solid var(--hairline);
}

.about-look__col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.about-look .band-body {
  color: var(--ink-muted);
  max-width: 70ch;
}

.about-look__closing {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1.35;
  color: var(--ink);
}

/* ---- Contact ---- */

.contact {
  background: var(--ink);
}

.contact__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.contact .section-heading {
  color: var(--paper);
}

.contact .band-body {
  color: var(--on-ink);
}

.contact__disclaimer {
  font-size: 13px;
  line-height: 1.5;
  color: var(--on-ink);
  max-width: 46ch;
}

/* ---- Contact modal ---- */

.contact-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
}

.contact-modal.is-open {
  display: block;
}

.contact-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 26, 23, 0.6);
}

.contact-modal__dialog {
  position: relative;
  margin: 5vh auto;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 12px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 4px 8px;
}
.contact-modal__close:hover {
  color: var(--ink);
}

.contact-modal__heading {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 400;
  padding-right: 24px;
}

.contact-modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-modal__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-modal__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
}

.contact-modal__optional {
  font-weight: 400;
  color: var(--ink-faint);
}

.contact-modal__input,
.contact-modal__textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
}
.contact-modal__input:focus,
.contact-modal__textarea:focus {
  outline: 2px solid var(--marigold-deep);
  outline-offset: 1px;
}

.contact-modal__textarea {
  resize: vertical;
  min-height: 90px;
}

.contact-modal__counter {
  font-size: 12px;
  color: var(--ink-faint);
  text-align: right;
}

.contact-modal__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.contact-modal__disclaimer {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.contact-modal__status {
  font-size: 14px;
  min-height: 1.2em;
}
.contact-modal__status--error {
  color: #B3261E;
}
.contact-modal__status--success {
  color: var(--marigold-deep);
}

.contact-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 4px;
}

@media (max-width: 600px) {
  .contact-modal__row {
    grid-template-columns: 1fr;
  }
  .contact-modal__dialog {
    margin: 0;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
  }
}

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

.site-footer {
  border-top: 1px solid var(--hairline);
}

.site-footer__row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 12px;
  color: var(--ink-faint);
}
.site-footer__row a:hover { text-decoration: underline; }

/* ---- Responsive ---- */

@media (max-width: 900px) {
  :root { --page-pad: 32px; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__row, .how-band__row--split { gap: 32px; }
  .hero__copy h1 { font-size: 40px; }
}

@media (max-width: 600px) {
  :root { --page-pad: 20px; }

  .hero__row, .services__grid, .how-band__row--split {
    grid-template-columns: 1fr;
  }
  .photo-slot--hero { aspect-ratio: 4 / 3; }
  .hero__copy h1 { font-size: 34px; }
  .section-heading { font-size: 28px; }
  .about-look__closing { font-size: 22px; }
  .site-nav { gap: 12px 20px; }
}
