/* Mid-Knight Baker: approved brand tokens (brand-kit/README.md).
   Midnight frame (header, hero, gifting, footer), daylight content (ivory). */
:root {
  --mkb-midnight-navy: #0B1631;
  --mkb-deep-navy: #1B2A4A;
  --mkb-warm-ivory: #FAF6EE;
  --mkb-champagne: #E6CF8F;
  --mkb-rich-gold: #C9A44C;
  /* Gold text on ivory darkens for WCAG AA contrast (4.7:1). */
  --mkb-gold-text: #8A6A1F;

  --mkb-heading-font: Georgia, "Times New Roman", serif;
  --mkb-body-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(11, 22, 49, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--mkb-warm-ivory);
  color: var(--mkb-deep-navy);
  font-family: var(--mkb-body-font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--mkb-gold-text); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--mkb-rich-gold);
  outline-offset: 2px;
}

h1, h2, .brand-name, .footer-name, .lockup {
  font-family: var(--mkb-heading-font);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 0.75rem; color: var(--mkb-midnight-navy); }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--mkb-rich-gold); color: var(--mkb-midnight-navy);
  padding: 0.5rem 1rem; border-radius: 999px; z-index: 10;
}
.skip-link:focus { left: 0.5rem; }

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mkb-gold-text);
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 1rem/1.2 var(--mkb-body-font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.button:hover { transform: translateY(-1px); }
.button-gold { background: var(--mkb-rich-gold); color: var(--mkb-midnight-navy); }
.button-gold:hover { background: var(--mkb-champagne); }
.button-ghost { border-color: var(--mkb-champagne); color: var(--mkb-warm-ivory); }
.button-ghost:hover { background: rgba(230, 207, 143, 0.12); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--mkb-midnight-navy);
  border-bottom: 1px solid rgba(201, 164, 76, 0.35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.6rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--mkb-warm-ivory); }
.brand-badge { width: 56px; height: 56px; border-radius: 50%; }
.brand-name { font-size: 1.5rem; }
.nav-list { display: flex; align-items: center; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a:not(.button) { color: var(--mkb-warm-ivory); text-decoration: none; font-weight: 500; }
.nav-list a:not(.button):hover { color: var(--mkb-champagne); }
.nav-list .button { padding: 0.55rem 1.1rem; }

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; }
  .brand-name { font-size: 1.25rem; }
  .brand-badge { width: 44px; height: 44px; }
  nav { width: 100%; overflow-x: auto; }
  .nav-list { gap: 1rem; padding-bottom: 0.25rem; white-space: nowrap; }
  .nav-list li:last-child { display: none; } /* the hero carries the order button on phones */
}

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 80% 20%, rgba(201, 164, 76, 0.18), transparent 45%),
    linear-gradient(180deg, var(--mkb-midnight-navy), var(--mkb-deep-navy));
  color: var(--mkb-warm-ivory);
  padding-top: clamp(2.5rem, 6vw, 5rem);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(1.5rem, 5vw, 4rem); padding-bottom: calc(12.5vw + 1.5rem); }
.hero .eyebrow { color: var(--mkb-champagne); }
.hero h1 { font-size: clamp(2.8rem, 7vw, 4.75rem); margin: 0 0 1rem; color: var(--mkb-warm-ivory); }
.hero .lede { font-size: 1.2rem; max-width: 34ch; color: rgba(250, 246, 238, 0.88); margin: 0 0 1.75rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-figure { margin: 0; justify-self: center; }
.hero-figure img {
  width: min(440px, 80vw);
  aspect-ratio: 1; object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--mkb-rich-gold);
  box-shadow: 0 0 0 10px rgba(201, 164, 76, 0.18), 0 25px 60px rgba(0, 0, 0, 0.45);
}
/* New York skyline (One WTC, Empire State, Chrysler) keeps its proportions. */
.skyline { width: 100%; height: auto; position: absolute; bottom: -1px; left: 0; pointer-events: none; }

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .actions { justify-content: center; }
  .hero-figure { order: -1; }
  .hero-figure img { width: min(300px, 70vw); }
}

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-lede { max-width: 60ch; font-size: 1.15rem; }
.section-cream { background: #F3EBDC; }
.section-navy { background: var(--mkb-midnight-navy); color: var(--mkb-warm-ivory); }
.section-navy h2 { color: var(--mkb-warm-ivory); }

.occasions { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 1.5rem 0 2.25rem; }
.occasions li {
  padding: 0.4rem 1rem; border-radius: 999px;
  border: 1px solid rgba(138, 106, 31, 0.45);
  background: #fff; color: var(--mkb-deep-navy); font-size: 0.95rem;
}

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.card-on-navy { box-shadow: 0 0 0 1px rgba(201, 164, 76, 0.4), 0 20px 50px rgba(0, 0, 0, 0.4); }
@media (max-width: 760px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .card-grid .card:last-child { grid-column: span 2; }
  .card-grid .card:last-child img { aspect-ratio: 2 / 1; }
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-top { align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.lockup { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1.35rem; color: var(--mkb-champagne); margin: 0 0 1rem; }
.lockup-monogram {
  display: inline-grid; place-items: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 2px solid var(--mkb-rich-gold); color: var(--mkb-rich-gold);
  font-style: italic; font-size: 1rem;
}

/* Instagram-style feed: profile bar, 3-column square grid, badges, hover captions. */
.ig-feed {
  max-width: 935px; margin: 1.5rem auto 0;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.ig-profile {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid rgba(27, 42, 74, 0.1);
}
.ig-avatar {
  width: 64px; height: 64px; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 210deg, #f9ce34, #ee2a7b, #6228d7, #f9ce34);
}
.ig-handle { flex: 1; min-width: 0; }
.ig-username { display: flex; align-items: center; gap: 0.4rem; margin: 0; font-weight: 700; color: var(--mkb-midnight-navy); }
.ig-bio { margin: 0.1rem 0 0; font-size: 0.9rem; color: rgba(27, 42, 74, 0.75); }
.ig-follow {
  padding: 0.45rem 1.1rem; border-radius: 8px;
  /* Instagram blue, darkened so white text meets WCAG AA (about 5:1). */
  background: #0064e0; color: #fff; font-weight: 600; font-size: 0.9rem; text-decoration: none;
}
.ig-follow:hover { background: #0052b8; }

.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ig-post { position: relative; display: block; overflow: hidden; background: #eee; }
.ig-post img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.25s ease; }
.ig-post:hover img, .ig-post:focus-visible img { transform: scale(1.04); }
.ig-badge {
  position: absolute; top: 8px; right: 8px; color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}
.ig-caption {
  position: absolute; inset: auto 0 0 0; padding: 2rem 0.75rem 0.6rem;
  background: linear-gradient(transparent, rgba(11, 22, 49, 0.85));
  color: #fff; font-size: 0.85rem; line-height: 1.3;
  opacity: 0; transition: opacity 0.2s ease;
}
.ig-post:hover .ig-caption, .ig-post:focus-visible .ig-caption { opacity: 1; }
@media (hover: none) { .ig-caption { display: none; } }

.ig-more { grid-column: 1 / -1; }
.ig-more > summary {
  list-style: none; cursor: pointer; text-align: center;
  padding: 0.9rem; font-weight: 600; color: var(--mkb-gold-text);
}
.ig-more > summary::-webkit-details-marker { display: none; }
.ig-more[open] > summary { display: none; }
.ig-more > .ig-grid { margin-top: 4px; }
.ig-footer { margin: 0; padding: 0.9rem; text-align: center; border-top: 1px solid rgba(27, 42, 74, 0.1); }
.ig-footer a { font-weight: 600; text-decoration: none; }
@media (max-width: 480px) {
  .ig-profile { flex-wrap: wrap; }
  .ig-grid { gap: 2px; }
}

.about { max-width: 780px; text-align: center; }
.about-quote { margin: 1.5rem 0 2.5rem; }
.about-quote p { font-family: var(--mkb-heading-font); font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.55; margin: 0 0 0.75rem; }
.about-quote footer { color: var(--mkb-gold-text); font-weight: 600; }
.testimonial { margin: 0; padding: 1.75rem; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.testimonial blockquote { margin: 0; }
.testimonial p { margin: 0 0 0.75rem; font-style: italic; }
.testimonial figcaption { color: var(--mkb-gold-text); font-weight: 600; font-size: 0.95rem; }

/* Order form */
.inquiry { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.field { display: grid; gap: 0.35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: 0.95rem; }
input, select, textarea {
  font: inherit; color: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(27, 42, 74, 0.25);
  border-radius: 10px;
  background: var(--mkb-warm-ivory);
}
.inquiry .button { justify-self: start; }

/* Shown in place of the form until online orders are switched on. */
.order-callout {
  display: flex; flex-direction: column-reverse; gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius);
  background: var(--mkb-midnight-navy); color: var(--mkb-warm-ivory); box-shadow: var(--shadow);
}
.order-callout-text { margin: 0; font-family: var(--mkb-heading-font); font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.35; }
.order-callout-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }
.button-outline { border-color: var(--mkb-champagne); color: var(--mkb-warm-ivory); }
.button-outline:hover { background: rgba(230, 207, 143, 0.12); }

/* Footer */
.site-footer { background: var(--mkb-midnight-navy); color: rgba(250, 246, 238, 0.85); padding-block: 2.5rem; }
.site-footer a { color: var(--mkb-champagne); }
.footer-inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-badge { width: 72px; height: 72px; border-radius: 50%; }
.footer-name { font-size: 1.4rem; color: var(--mkb-warm-ivory); margin: 0; }
.site-footer p { margin: 0.2rem 0; }
.social { display: flex; gap: 0.75rem; list-style: none; padding: 0; margin: 0 0 0 auto; }
.social-link {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(201, 164, 76, 0.5);
  color: var(--mkb-champagne);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.social-link:hover { background: var(--mkb-rich-gold); color: var(--mkb-midnight-navy); }


/* Order form: the honeypot is off-screen for people, present for bots. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }

/* Thank-you and problem pages */
.result-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(180deg, var(--mkb-midnight-navy), var(--mkb-deep-navy)); }
.result { max-width: 560px; text-align: center; padding: 3rem 1.5rem; background: var(--mkb-warm-ivory); border-radius: var(--radius); box-shadow: var(--shadow); }
.result-badge { width: 120px; height: 120px; margin: 0 auto 1rem; border-radius: 50%; }
.result h1 { font-family: var(--mkb-heading-font); font-weight: 400; font-size: 2.2rem; margin: 0 0 1rem; color: var(--mkb-midnight-navy); }
