/* The Kept Day — site styles. Colors and type match the brand kit. */
:root {
  --ivory: #F7F1E6;
  --linen: #EDE3D1;
  --ink: #291D21;          /* plum espresso */
  --ink-muted: #665255;    /* dusty mauve */
  --shade: #4F5E55;        /* brand green */
  --mist: #93A396;
  --honey: #C8922E;
  --honey-text: #80571A;
  --hairline: #DDD0BB;
  --night: #1A1317;

  --display: "Ivy Presto Display", "Playfair Display", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Nunito Sans", system-ui, sans-serif;

  --wrap: 1180px;
  --gap: clamp(16px, 2.5vw, 28px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--honey-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(42px, 6vw, 76px); font-style: italic; }
h2 { font-size: clamp(32px, 4vw, 48px); font-style: italic; }
h3 { font-size: 26px; }
p { margin: 0 0 1.1em; }
.eyebrow {
  display: block;
  font: 600 12px/1.4 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.lead { font-size: 20px; line-height: 1.65; max-width: 38em; }
.muted { color: var(--ink-muted); }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--hairline); background: var(--ivory); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.site-header .logo img { height: 64px; width: auto; margin-block: -6px; }
.nav { display: flex; gap: 28px; }
.nav a {
  font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; padding-block: 8px;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--honey); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .site-header .logo img { height: 52px; }
  .nav-toggle {
    display: block; background: none; border: 1px solid var(--hairline); border-radius: 2px;
    font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
    color: var(--ink); padding: 10px 12px; cursor: pointer;
  }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%;
         flex-direction: column; gap: 0; background: var(--ivory); border-bottom: 1px solid var(--hairline); }
  .nav.open { display: flex; }
  .nav a { padding: 16px var(--gap); border-bottom: 1px solid var(--hairline); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--shade); color: var(--ivory);
  font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; padding: 17px 28px; border-radius: 2px;
}
.btn:hover { background: var(--ink); color: var(--ivory); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }

/* ---------- sections ---------- */
section { padding-block: clamp(64px, 9vw, 120px); }
.band { background: var(--linen); }

/* hero */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; padding: 0; color: var(--ivory); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,19,23,.78) 0%, rgba(26,19,23,.45) 38%, rgba(26,19,23,0) 68%); }
.hero h1 { text-shadow: 0 1px 18px rgba(26,19,23,.35); }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(40px, 7vw, 88px); }
.hero h1 { max-width: 12em; color: var(--ivory); }
.hero .eyebrow { color: rgba(247,241,230,.85); }
.hero .btn { background: var(--ivory); color: var(--ink); }
.hero .btn:hover { background: var(--honey); color: var(--ink); }

/* two-column intro */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* arch-cropped photo: the brand's one curve */
.arch { border-radius: 999px 999px 0 0; overflow: hidden; aspect-ratio: 4 / 5; }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* three promises */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 40px; }
.pillars div { border-top: 1px solid var(--hairline); padding-top: 22px; }
.pillars h3 { font-style: italic; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* gallery */
.gallery { columns: 3 320px; column-gap: var(--gap); }
.gallery figure { margin: 0 0 var(--gap); break-inside: avoid; }
.gallery figcaption { font-size: 13px; color: var(--ink-muted); padding-top: 8px; }

.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.strip img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr 1fr; } .strip > :nth-child(3) { display: none; } }

/* steps */
.steps { counter-reset: s; display: grid; gap: 28px; max-width: 760px; }
.steps li { list-style: none; display: grid; grid-template-columns: 56px 1fr; gap: 18px; }
.steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero);
  font: italic 400 34px/1 var(--display); color: var(--honey-text); }
.steps { padding: 0; margin: 0; }

/* pricing */
.collections { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 40px; }
.collection { background: var(--ivory); border: 1px solid var(--hairline); padding: 32px 28px; }
.collection .price { font: italic 400 34px/1.1 var(--display); color: var(--ink); margin-bottom: 12px; }
.collection ul { padding-left: 18px; margin: 0; }
@media (max-width: 860px) { .collections { grid-template-columns: 1fr; } }

/* contact */
.contact-card { background: var(--linen); padding: clamp(28px, 5vw, 56px); max-width: 760px; }
.contact-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0 0 28px; }
.contact-card dt { font: 600 12px/1.9 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
.contact-card dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .contact-card dl { grid-template-columns: 1fr; gap: 2px; } .contact-card dd { margin-bottom: 12px; } }

/* cta band */
.cta { text-align: center; }
.cta h2 { margin-inline: auto; max-width: 14em; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: #F3EBDD; padding-block: 56px 40px; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.site-footer a { color: #F3EBDD; }
.site-footer .small { font-size: 13px; color: #B9A893; margin: 0; }
.site-footer .mark { height: 56px; width: auto; margin-bottom: 18px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

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