/* Loaded only on the main homepage. Shared form surfaces retain their own palette. */
.graphite-home {
  --canvas: #202124;
  --section: #252629;
  --surface: #303135;
  --text: #f5f2ed;
  --secondary: #cbc8c3;
  --milk: #f4eee7;
  --accent: #d6a462;
  --divider: rgb(255 255 255 / 15%);
  background-color: var(--canvas);
}
.graphite-home body { background: var(--canvas); }
#main { display: flow-root; background: var(--cream); color: var(--ink); }
footer { background: #1d1e21; color: var(--text); }
.footer-actions .outline { border-color: #ffffff47; }
footer a:hover, .footer-address .icon { color: var(--accent); }
.footer-actions .outline, .bag-count { background: var(--surface); color: var(--text); }
.footer-actions .outline:hover { background: #404145; }
.hero-graphite {
  --gold: var(--accent);
  background: radial-gradient(ellipse at 70% 57%, #1d2023, #101215 59%, #0c0e10);
  color: var(--text);
  min-height: 60svh;
}
/* Frame the portrait with the candlelight from the far left of the same photograph. */
.hero-graphite::before {
  content: "";
  position: absolute;
  z-index: -3;
  pointer-events: none;
  left: 42%; bottom: 4%;
  width: 25%; height: 53%;
  background: url("/media/hero-graphite-1000.webp") left 96% / 430% auto no-repeat;
  mask-image: radial-gradient(ellipse at 40% 56%, #000 18%, transparent 85%),
    linear-gradient(to right, transparent, #000 13%, #000 75%, transparent),
    linear-gradient(to bottom, transparent, #000 18%, #000 68%, transparent);
  mask-composite: intersect;
  opacity: .72;
}
.hero-graphite .hero-art {
  inset: auto 0 0 auto;
  height: calc(100% - var(--nav-space)); width: auto; max-width: 72%;
  aspect-ratio: 1672 / 941;
  mask-image: linear-gradient(to right, transparent, #000 23%), linear-gradient(to bottom, transparent, #000 7%, #000 95%, transparent);
}
.hero-graphite .wave {
  height: clamp(20px, 4svh, 48px);
  filter: drop-shadow(0 -2px 5px rgb(231 168 92 / 24%));
}
.hero-graphite .hero-image { filter: contrast(1.07) brightness(.96); width: 100%; height: 100%; object-fit: cover; object-position: 68% 12%; }
.hero-graphite h1 { font-weight: 400; letter-spacing: .018em; }
.hero-graphite h1 em { font: inherit; }
.hero-graphite .hero-copy > p, .approach-heading em, .mc-intro { font-style: normal; }
.hero-graphite .hero-copy > p { color: var(--text); max-width: 54%; }
.hero-graphite .hero-actions .outline { background: #252629; border-color: #c6c2bd; }
.hero-actions .btn.gold, .closing .btn.gold { background: linear-gradient(105deg,#eac38b,#dbac6d); color: #251f18; }
.section-title::before, .section-title::after { background: #ac8961; }
.format > div > .icon { color: var(--bronze); }
.menu-carousel {
  --paper: var(--milk); --chocolate: #2c2c2f;
  background: var(--section); color: var(--text);
}
.mc-header .section-title { color: var(--text); }
.mc-intro, .review small { color: var(--secondary); }
.mc-card { --card-inner-line: #ffffff33; border-color: #a19b93; }
.mc-cta { background: #303135; color: var(--milk); }
.mc-names button, .round.carousel-arrow { background: var(--surface); color: var(--text); border-color: #ffffff40; }
.mc-names button:hover, .round.carousel-arrow:hover { background: #414246; color: var(--text); border-color: #ffffff66; }
.mc-names button[aria-current] { background: var(--accent); color: #26221c; border-color: var(--accent); }
.mc-dots button::after { background: #939395; }
.mc-dots button[aria-current]::after, .dots button[aria-current="true"]::before { background: var(--accent); }
.review-copy i { color: var(--accent); }
.review { background: var(--surface); color: var(--text); border-color: var(--divider); }
.closing { background: linear-gradient(115deg, #37383b, #28292c); color: var(--text); }
.closing p, .closing .outline { border-color: #ffffff55; }

@media (max-width: 1050px) {
  .hero-graphite {
    --wave-height: clamp(20px, 2.8svh, 30px);
    --after-actions: calc(var(--wave-height) + 18px);
    min-height: 0;
    background: radial-gradient(ellipse at 18% 66%, #39302c 0%, #252526 36%, #16191b 75%);
  }
  .hero-graphite .hero-copy {
    display: grid; grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto; align-items: start;
    min-height: min(calc(64svh - var(--nav-space)), calc(83vw + 142px));
    padding-block: 8px var(--after-actions);
  }
  .hero-graphite h1 {
    margin: 0; font-size: clamp(20px, 6.3vw, 38px);
    line-height: 1.04; letter-spacing: .024em;
  }
  .hero-graphite h1 em { display: block; font: inherit; }
  .hero-graphite h1 em + br { display: none; }
  .hero-graphite .hero-copy > p {
    width: min(49%, 32ch); max-width: none; margin: 12px 0 14px;
    color: #e4dfd8; text-wrap: balance;
    font-size: clamp(12px, 3vw, 15px); font-weight: 450; line-height: 1.43;
  }
  .hero-graphite .hero-detail { display: inline; }
  .hero-graphite .hero-art {
    inset: auto 0 calc(var(--after-actions) + 102px) auto;
    width: 65%; height: auto;
    max-width: none; aspect-ratio: 1.17;
    mask-image: linear-gradient(to right, transparent, #000 13%),
      linear-gradient(to bottom, transparent, #000 12%, #000 96%, transparent);
  }
  .hero-graphite .hero-image { object-position: 89% bottom; }
  .hero-graphite::before {
    inset: auto auto calc(var(--after-actions) + 57px) -3%;
    width: 45%; height: 48%;
    background-size: 470% auto;
    background-position: 0 100%;
    mask-image: radial-gradient(ellipse closest-side at 45% 64%, black 10%, transparent 100%);
    opacity: .8;
  }
  .hero-graphite .wave { height: var(--wave-height); }
  .hero-graphite .hero-actions {
    display: grid; gap: 8px; width: 100%;
    margin: 0; padding: 0;
  }
  .hero-graphite .hero-actions .btn { width: 100%; min-height: 44px; font-size: 13px; }
  .hero-graphite .hero-actions .gold { background: linear-gradient(110deg, #f0c381, #d69748); }
  .hero-graphite .hero-actions .outline { border-color: #8a704e; background: #1d1c1b; }
}

@media (max-width: 520px) {
  .hero-graphite .hero-copy {
    /* Keep the top line clear even when Safari's toolbars shorten the viewport. */
    min-height: max(min(calc(64svh - var(--nav-space)), calc(83vw + 142px)),
      calc(55.56vw + var(--after-actions) + 116px + 1lh));
  }
  .hero-graphite .hero-copy > p { width: 43%; }
}

/* The wider crop brings the candles and the portrait into the same frame. */
@media (520px < width <= 1050px) {
  .hero-graphite .hero-copy {
    min-height: clamp(335px, min(55svh, calc(65vw + 24px)), 530px);
    padding-top: clamp(10px, 2svh, 22px);
  }
  .hero-graphite h1 { font-size: clamp(26px, 4.5vw, 46px); }
  .hero-graphite h1 em { display: inline; }
  .hero-graphite h1 em + br { display: initial; }
  .hero-graphite .hero-copy > p { display: block; width: 42%; max-width: 34ch; }
  .hero-graphite .wide { display: none; }
  .hero-graphite .hero-art {
    inset: clamp(46px, 6svh, 64px) -4% calc(var(--after-actions) + 98px) auto;
    height: auto; width: 95%; aspect-ratio: auto;
    mask-image: linear-gradient(to right, transparent, transparent 12%, black 51%),
      linear-gradient(to bottom, transparent, black 8%, black 94%, transparent);
  }
  .hero-graphite .hero-image { object-fit: contain; object-position: right bottom; }
}

@media (650px < width <= 1050px) {
  .format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .format { padding: 10px 14px; }
  .format > div {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 6px 9px;
  }
  .format > div > .icon { width: 25px; height: 25px; }
  .format h3 { margin: 0; }
  .format p { grid-column: 1 / -1; max-width: 22em; }
}

/* Reserve room below the hero for the complete overview of services. */
.graphite-home .formats { padding-top: clamp(10px, 2.5svh, 30px); }
.graphite-home .format-grid { margin-top: clamp(8px, 1.8svh, 22px); }
@media (min-width: 1051px) {
  .hero-graphite .hero-copy { padding-block: 6px clamp(22px, 4svh, 54px); }
  .graphite-home .format { min-height: 26svh; }
}
@media (max-width: 1050px) {
  .graphite-home .format-grid { row-gap: clamp(6px, 1svh, 12px); }
  .graphite-home .format { min-height: clamp(65px, 12svh, 142px); }
  .graphite-home .formats .section-title {
    font-size: clamp(15px, 3.65vw, 20px);
    letter-spacing: .06em;
  }
}
@media (max-width: 360px) {
  .graphite-home .format { padding-inline: 9px; }
  .graphite-home .format h3 { font-size: 17px; }
}
@media (max-width: 650px) and (max-height: 630px),
       (min-width: 480px) and (max-width: 650px) and (max-height: 700px) {
  .graphite-home { --nav-row: 52px; }
  .graphite-home .topbar .headrow { padding-block: 4px; }
  .hero-graphite .hero-copy { padding-block: 4px var(--after-actions); }
  .hero-graphite h1 { font-size: clamp(19px, 5.8vw, 24px); }
  .hero-graphite h1 em { display: inline; }
  .hero-graphite h1 em + br { display: initial; }
  .hero-graphite .hero-copy > p { margin-block: 6px; line-height: 1.35; }
  .graphite-home .formats { padding-top: 9px; }
  .graphite-home .formats .section-title { font-size: 14px; gap: 6px; letter-spacing: .035em; }
  .graphite-home .formats .section-title::before,
  .graphite-home .formats .section-title::after { width: 9px; }
}
@media (min-width: 651px) and (max-width: 1050px) and (max-height: 700px) {
  .graphite-home { --nav-row: 48px; }
  .hero-graphite .hero-copy { display: block; padding-block: 2px var(--after-actions); }
  .hero-graphite h1 { font-size: clamp(21px, 5.7svh, 29px); }
  .hero-graphite .hero-copy > p { margin: 6px 0 8px; width: 58%; max-width: 58ch; font-size: 12px; }
  .hero-graphite .hero-actions { width: 56%; grid-template-columns: 1fr 1fr; }
  .hero-graphite .hero-art { inset: 12px -3% 0 auto; width: 76%; }
  .graphite-home .format-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .graphite-home .format { padding-inline: 9px; }
  .graphite-home .format h3 { font-size: clamp(16px, 2.2vw, 20px); }
}
