/* ============ Dewy Socials · contact page ============ */

@font-face {
  font-family: "Adine Kirnberg";
  src: url("assets/fonts/AdineKirnberg.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Inknut Antiqua";
  src: url("assets/fonts/InknutAntiqua-Light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}

:root {
  --cream: #f2ebdc;
  --paper: #ebe2cf;
  --sheet: #faf6ee;
  --ink: #422c24;
  --rose: #dd97a5;
  --slate: #56768d;

  --ink-soft: rgba(66, 44, 36, 0.7);
  --line: rgba(66, 44, 36, 0.16);
  --error: #b5485d;

  /* type: drop Helvetica Now webfont files in and name them here */
  --sans: "Helvetica Now Display", "Helvetica Now Text", "Helvetica Neue", Helvetica, "Inter Tight", Arial, sans-serif;
  --serif: "Inknut Antiqua", Georgia, serif;
  --script: "Adine Kirnberg", "Snell Roundhand", cursive;
  --track: -0.015em; /* Helvetica Now at -15 */

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1080px;
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: var(--track);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
button, input, textarea, select { font: inherit; letter-spacing: inherit; color: inherit; }
::selection { background: var(--rose); color: var(--ink); }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.mark {
  display: inline-block;
  background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
          mask: var(--src) center / contain no-repeat;
}
.mark--logotype { --src: url("assets/brand/logotype.png"); aspect-ratio: 592 / 464; }

.script { display: block; font-family: var(--script); font-weight: 400; letter-spacing: 0; line-height: 1; color: var(--rose); }
.eyebrow { font-family: var(--serif); font-weight: 300; font-size: 12px; letter-spacing: .02em; line-height: 1.8; color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 12px 22px; border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font: 500 14px/1 var(--sans); letter-spacing: var(--track);
  border: 1px solid var(--ink); cursor: pointer; text-decoration: none;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--rose); border-color: var(--rose); color: var(--ink); transform: translateY(-1px); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- nav: logo centred ---------- */
.nav {
  height: var(--nav-h);
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.nav__brand { display: flex; flex-shrink: 0; }
/* fixed width + height (592:464) so no browser can collapse the logo */
.nav__brand .mark { height: 54px; width: 69px; flex-shrink: 0; color: var(--ink); }
.nav__links { justify-self: end; display: flex; gap: 22px; font-size: 14px; }
.nav__links a { text-decoration: none; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }

/* ---------- page: intro panel + form sheet ---------- */
.page {
  flex: 1;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: clamp(4px, 1vw, 12px) var(--gutter) clamp(32px, 4vw, 56px);
  display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(12px, 1.4vw, 18px);
  align-items: stretch;
}

.intro {
  background: var(--paper);
  border-radius: 4px;
  padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.intro .eyebrow { margin-bottom: 4px; }
.intro__title { font-size: clamp(30px, 3.2vw, 42px); font-weight: 700; line-height: 1.02; letter-spacing: var(--track); margin-bottom: 16px; }
.intro__title .script { font-size: 1.15em; margin-bottom: .06em; }
.intro__lede { color: var(--ink-soft); max-width: 36ch; }
.intro__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.intro__services { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.intro__services li { font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }

.sheet {
  background: var(--sheet);
  border-radius: 4px;
  border: 1px solid var(--line);
  padding: clamp(22px, 2.8vw, 36px);
  display: flex; flex-direction: column;
}
.sheet__bar { padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.sheet__bar h2 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- fill-in-the-blank form ---------- */
.madlib { flex: 1; display: flex; flex-direction: column; font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; line-height: 1.3; }
.madlib__row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  border: 0; margin: 0; padding: clamp(8px, 1vw, 11px) 0;
  min-width: 0;
}
.madlib__row legend { float: left; padding: 0; margin-right: 10px; }
.madlib__row--stack { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.blank {
  flex: 1 1 180px; min-width: 150px;
  font: 400 15px/1.4 var(--sans); letter-spacing: var(--track);
  background: transparent;
  border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0;
  padding: 6px 2px;
  -webkit-appearance: none; appearance: none;
  transition: border-color .3s var(--ease);
}
.blank--wide { flex: none; width: 100%; min-width: 0; resize: vertical; min-height: 40px; }
.blank--other { flex: 1 1 160px; animation: rise .4s var(--ease) both; }
.blank::placeholder { color: rgba(66, 44, 36, .45); }
.blank:focus { outline: none; border-bottom-color: var(--rose); }
.blank.is-invalid { border-bottom-color: var(--error); }

/* "i run / i’m from / i’m planning" pill toggle */
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }

.opt { cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 400;
  padding: 7px 13px; border: 1px solid var(--ink); border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.opt span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1px solid currentColor; transition: background .25s var(--ease); }
.opt input[type="checkbox"] + span::before { border-radius: 2px; }
.opt:hover span { background: rgba(66, 44, 36, .06); }
.opt input:checked + span { background: var(--ink); color: var(--cream); }
.opt input:checked + span::before { background: var(--rose); border-color: var(--rose); }
.opt input:focus-visible + span { outline: 2px solid var(--slate); outline-offset: 2px; }
fieldset.is-invalid .opt span { border-color: var(--error); }
.madlib__foot { margin-top: auto; padding-top: 16px; display: flex; justify-content: flex-end; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__error { color: var(--error); font-size: 13px; font-weight: 400; }

/* ---------- confirmation ---------- */
.booked { padding-top: 16px; }
.booked:focus { outline: none; }
.booked__title { font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; line-height: 1; margin-bottom: 10px; }
.booked > p { color: var(--ink-soft); margin-bottom: 18px; }
.booked strong { color: var(--ink); font-weight: 700; }

/* ---------- footer ---------- */
.footer {
  background: var(--ink); color: rgba(242, 235, 220, .7);
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding: 24px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  font-size: 13px;
}
.footer__logo { height: 46px; width: 59px; flex-shrink: 0; color: var(--cream); }

/* ---------- entrance ---------- */
.rise { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .page { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  /* phones: logo back on the left, links on the right */
  .nav { display: flex; justify-content: space-between; height: 68px; }
  .nav > span[aria-hidden] { display: none; }
  .nav__links { gap: 14px; font-size: 13px; }
  .nav__brand .mark { height: 46px; width: 59px; }
  .madlib__row legend { float: none; width: 100%; margin-bottom: 4px; }
  .blank:not(.blank--wide) { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
