/* T Cakes & More, Dickson TN. Concept: the T cake stand. Her menu's own pun ("Special-T cakes") becomes the mark:
   a T is a plate on a stem, so her real cakes sit on T's all through the page.
   Buttercream, cocoa, royal-icing blue (from her blue cakes), strawberry. Alfa Slab One + Nunito Sans. */
:root {
  --bg: #fff8ee;
  --surface: #f6e9d8;
  --cream: #fffdf8;
  --ink: #3a2418;
  --muted: #7d6557;
  --accent: #2d5bb9;
  --accent2: #e14b5a;
  --light: #fff8ee;
  --font-display: "Alfa Slab One";
  --font-body: "Nunito Sans";
  --plate: var(--ink);
}
html { scroll-padding-top: 90px; }
body { background: var(--bg); }
h1, h2, h3 { font-weight: 400; letter-spacing: 0; }
h2 { font-size: var(--step-4); line-height: 1; }
::selection { background: var(--accent); color: #fff; }
.cursor { display: none !important; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: var(--step--1); border: 2px solid transparent; transition: background .3s, color .3s, border-color .3s, transform .4s cubic-bezier(.34,1.56,.64,1); cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-blue { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-blue:hover { background: var(--ink); border-color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.btn-line:hover { border-color: var(--ink); }

/* header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 14px var(--gutter); }
.site-header.is-solid { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; font-family: var(--font-display); font-size: var(--step-1); line-height: 1; }
.brand-t { color: var(--accent); font-family: var(--font-display); font-size: 1.5em; line-height: .8; }
.brand-rest em { font-style: normal; color: var(--accent2); }
.site-nav { display: flex; gap: 24px; margin-left: 20px; }
.site-nav a { text-decoration: none; font-size: var(--step--1); font-weight: 700; color: var(--ink); opacity: .72; transition: opacity .3s; }
.site-nav a:hover { opacity: 1; }
.call { margin-left: auto; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 700; font-size: var(--step--1); transition: background .3s; }
.call:hover { background: var(--accent); }
@media (max-width: 899px) { .site-nav, .call { display: none; } }

/* the stand: a round cake on a plate on a stem. Used everywhere. */
.stand { display: grid; justify-items: center; align-content: end; margin: 0; }
.stand .cake { width: var(--d, 220px); height: var(--d, 220px); border-radius: 50%; overflow: hidden; background: var(--surface); position: relative; z-index: 2; margin-bottom: -10px; box-shadow: 0 18px 30px -18px rgba(58, 36, 24, .45); }
.stand .cake img { width: 100%; height: 100%; object-fit: cover; }
.stand .plate { display: block; width: calc(var(--d, 220px) * 1.12); height: 12px; border-radius: 999px; background: var(--plate); position: relative; z-index: 3; }
.stand .stem { display: block; width: 14px; height: var(--h, 70px); background: var(--plate); }
.stand .foot { display: block; width: calc(var(--d, 220px) * .5); height: 9px; border-radius: 999px; background: var(--plate); }
.stand figcaption { margin-top: 16px; font-weight: 700; font-size: var(--step--1); color: var(--muted); text-align: center; }

/* hero: the big T */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(20px, 4vw, 60px); padding: 120px var(--gutter) 60px; overflow: hidden; }
.hero-stand { position: relative; justify-self: center; width: min(40vw, 520px); display: grid; justify-items: center; }
.hero-cake { width: 72%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; position: relative; z-index: 2; margin-bottom: -4%; box-shadow: 0 30px 50px -30px rgba(58, 36, 24, .55); animation: land 1.4s cubic-bezier(.34,1.56,.64,1) both .5s; }
.hero-cake img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform: scale(1.12); }
.bigT { position: relative; width: 100%; height: min(30vw, 400px); display: flex; flex-direction: column; align-items: center; z-index: 1; animation: rise 1.2s var(--ease-out) both .1s; }
.bigT-bar { display: block; flex: none; width: 100%; height: clamp(34px, 3.6vw, 52px); background: var(--accent); border-radius: 8px; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .14); }
.bigT-stem { display: block; flex: 1; width: 22%; background: var(--accent); margin-top: -2px; box-shadow: inset -12px 0 0 rgba(0, 0, 0, .12); }
.bigT-foot { display: block; flex: none; width: 46%; height: clamp(22px, 2.4vw, 34px); background: var(--accent); border-radius: 6px 6px 999px 999px; }
@keyframes land { from { transform: translateY(-40px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.motion-off .hero-cake, .motion-off .bigT { animation: none; }
.hero-copy { max-width: 640px; }
.hero-kicker { font-weight: 700; font-size: var(--step--1); color: var(--accent2); letter-spacing: .02em; margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.8rem, 1rem + 5.6vw, 6.6rem); line-height: .98; }
.hero h1 .split-mask { padding-bottom: .16em; margin-bottom: -.16em; }
.hero-sub { margin-top: 26px; max-width: 48ch; color: var(--muted); font-size: var(--step-0); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* what T makes */
.makes { padding: clamp(70px, 10vw, 140px) 0 clamp(40px, 6vw, 80px); }
.makes-lead { font-size: clamp(2.2rem, 1rem + 4.4vw, 5.2rem); max-width: 14ch; }
.makes-lead .split-mask { padding-bottom: .16em; margin-bottom: -.16em; }
.makes-sub { margin-top: 20px; color: var(--muted); max-width: 46ch; }
.makes-list { margin-top: clamp(40px, 6vw, 90px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 24px; }
.make { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: end; }
.make-a { grid-column: 1 / 7; }
.make-b { grid-column: 7 / 13; margin-top: 90px; }
.make-c { grid-column: 2 / 7; margin-top: 10px; }
.make-d { grid-column: 7 / 12; margin-top: 70px; }
.make-photo { --d: 168px; --h: 34px; }
.make-copy h3 { font-size: var(--step-2); line-height: 1.05; margin-bottom: 10px; }
.make-copy p { color: var(--muted); max-width: 40ch; }

/* the dessert table */
.table { position: relative; background: var(--ink); color: var(--bg); padding: clamp(70px, 9vw, 120px) 0 0; --plate: var(--bg); overflow: hidden; }
.table-head { padding: 0 var(--gutter) 10px; display: flex; align-items: end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.table-head h2 { font-size: clamp(2.4rem, 1rem + 5vw, 6rem); }
.table-head h2 .split-mask { padding-bottom: .16em; margin-bottom: -.16em; }
.table-head p { color: color-mix(in srgb, var(--bg) 60%, transparent); max-width: 36ch; }
.table-track { align-items: end; padding: 60px var(--gutter) 0; min-height: 520px; }
.table-track .stand { flex: none; }
.stand-md { --d: 220px; }
.stand-lg { --d: 290px; }
.table .stand .cake { box-shadow: 0 30px 40px -24px rgba(0, 0, 0, .7); transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.table .stand:hover .cake { transform: translateY(-8px) rotate(-2deg); }
.table .stand figcaption { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.stand-end { align-self: center; padding: 0 40px; }
.tablecloth { height: 40px; background: var(--bg);
  mask: radial-gradient(14px at 50% 0, transparent 97%, #000) 50% 0 / 28px 100% repeat-x; -webkit-mask: radial-gradient(14px at 50% 0, transparent 97%, #000) 50% 0 / 28px 100% repeat-x; }
.table .stand figcaption { margin-bottom: 6px; }

/* flavors: Special-T */
.flavors { background: var(--surface); padding: clamp(70px, 10vw, 140px) 0; position: relative; overflow: hidden; }
.flavors-lead { font-size: clamp(3rem, 1rem + 9vw, 10rem); line-height: .95; }
.flavors-lead .split-mask { padding-bottom: .18em; margin-bottom: -.18em; }
.flavors-lead .tee { color: var(--accent); }
.flavors-sub { margin-top: 18px; color: var(--muted); max-width: 50ch; }
.flavor-cols { margin-top: clamp(40px, 5vw, 70px); display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 40px clamp(24px, 4vw, 70px); }
.flavor-col h3 { font-size: var(--step-1); color: var(--accent2); margin-bottom: 16px; display: flex; gap: 10px; align-items: baseline; }
.flavor-col h3 small { font-family: var(--font-body); font-weight: 700; font-size: var(--step--1); color: var(--muted); }
.flavor-col h3.later { margin-top: 34px; }
.flavor-col p { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.15; padding: 10px 0; border-top: 2px dotted color-mix(in srgb, var(--ink) 25%, transparent); }
.flavor-col h3.later + p { font-family: var(--font-body); font-size: var(--step-0); color: var(--muted); line-height: 1.6; }
.flavors-note { margin-top: clamp(36px, 5vw, 60px); padding-top: 24px; border-top: 2px solid var(--ink); max-width: 60ch; font-weight: 600; }
.flavors-note a { color: var(--accent); text-decoration: none; border-bottom: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); }

/* weddings */
.weddings { padding: clamp(70px, 10vw, 140px) 0; }
.weddings-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: auto; gap: 24px; align-items: center; }
.wed-photo { margin: 0; overflow: hidden; border-radius: 24px; background: var(--surface); }
.wed-photo img { width: 100%; height: 100%; object-fit: cover; }
.wed-a { grid-column: 1 / 6; grid-row: 1 / 3; aspect-ratio: 4 / 5; }
.wed-copy { grid-column: 7 / 13; grid-row: 1; padding-bottom: 20px; }
.wed-copy h2 { font-size: clamp(1.9rem, 1rem + 3vw, 3.8rem); line-height: 1.05; }
.wed-copy h2 .split-mask { padding-bottom: .16em; margin-bottom: -.16em; }
.wed-copy p { margin-top: 22px; color: var(--muted); max-width: 50ch; }
.wed-b { grid-column: 7 / 10; grid-row: 2; aspect-ratio: 1; }
.wed-c { grid-column: 10 / 13; grid-row: 2; aspect-ratio: 1; margin-top: 60px; }

/* ask */
.ask { background: var(--accent); color: #fff; padding: clamp(70px, 10vw, 140px) 0; position: relative; overflow: hidden; }
.ask::before { content: ""; position: absolute; left: -6vw; bottom: -10vw; width: 30vw; height: 30vw; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.ask-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 110px); align-items: start; position: relative; }
.ask h2 { font-size: clamp(2.4rem, 1rem + 4.6vw, 5.4rem); line-height: .98; }
.ask h2 .split-mask { padding-bottom: .16em; margin-bottom: -.16em; }
.ask-copy > p { margin-top: 24px; max-width: 46ch; color: rgba(255, 255, 255, .8); }
.ask-direct { margin-top: 36px; display: grid; gap: 8px; }
.ask-phone { font-family: var(--font-display); font-size: var(--step-3); color: #fff; text-decoration: none; line-height: 1; }
.ask-mail { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(255, 255, 255, .4); width: max-content; }
.ask-direct p { margin-top: 14px; color: rgba(255, 255, 255, .8); line-height: 1.6; }
.ask-form { background: var(--cream); color: var(--ink); border-radius: 28px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .5); }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-weight: 700; font-size: var(--step--1); color: var(--muted); margin-bottom: 10px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 2px solid color-mix(in srgb, var(--ink) 18%, transparent); font-weight: 700; font-size: var(--step--1); transition: background .25s, color .25s, border-color .25s, transform .25s; }
.chips input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chips span.pop { animation: pop .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes pop { 0% { transform: scale(.9); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.ask-form label:not(.chips label) { display: grid; gap: 6px; font-size: var(--step--1); font-weight: 700; color: var(--muted); }
.ask-form input:not([type=radio]), .ask-form textarea { width: 100%; padding: 13px 14px; border: 2px solid color-mix(in srgb, var(--ink) 15%, transparent); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 400; transition: border-color .3s; }
.ask-form input:focus, .ask-form textarea:focus { outline: none; border-color: var(--accent); }
.ask-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ask-form button { justify-self: start; margin-top: 4px; }
.form-note { font-size: var(--step--1); color: var(--muted); }

/* footer */
.site-footer { background: var(--ink); color: var(--bg); padding: 60px 0 30px; }
.foot-grid { display: grid; grid-template-columns: auto 1fr 1fr 1.2fr; gap: 40px; align-items: start; }
.foot-brand { font-family: var(--font-display); font-size: var(--step-2); line-height: 1; }
.foot-brand .brand-t { font-size: 1.4em; }
.foot-col p { color: color-mix(in srgb, var(--bg) 75%, transparent); font-size: var(--step--1); line-height: 1.8; }
.foot-col a { color: var(--bg); text-decoration: none; font-weight: 700; }
.foot-fine { margin-top: 44px; font-size: var(--step--1); color: color-mix(in srgb, var(--bg) 45%, transparent); }

/* sticky call bar (phones) */
.callbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none; gap: 8px; }
.callbar a { flex: 1; text-align: center; padding: 15px 10px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; font-size: var(--step--1); }
.callbar a.alt { background: var(--accent); color: #fff; }

/* phones + small tablets */
@media (max-width: 899px) {
  html { scroll-padding-top: 76px; }
  .hero { grid-template-columns: 1fr; padding: 96px var(--gutter) 60px; min-height: auto; gap: 30px; }
  .hero-stand { width: min(68vw, 340px); }
  .bigT { height: min(44vw, 220px); }
  .bigT-bar { height: 30px; }
  .bigT-foot { height: 20px; }
  .hero h1 { font-size: clamp(2.4rem, 1rem + 8vw, 4rem); }
  .makes-list { grid-template-columns: 1fr; gap: 36px; }
  .make { grid-column: auto !important; margin-top: 0 !important; grid-template-columns: 1fr; gap: 14px; justify-items: start; }
  .make-photo { --d: 130px; --h: 26px; }
  .table-head { flex-direction: column; align-items: start; }
  .table-track { padding: 40px var(--gutter) 10px; min-height: auto; gap: 26px; }
  .stand-md { --d: 170px; }
  .stand-lg { --d: 210px; }
  .table .stand { --h: 36px !important; }
  .flavor-cols { grid-template-columns: 1fr; gap: 28px; }
  .weddings-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .wed-a { grid-column: 1 / 3; grid-row: 2; aspect-ratio: 4 / 3; }
  .wed-copy { grid-column: 1 / 3; grid-row: 1; }
  .wed-b { grid-column: 1; grid-row: 3; }
  .wed-c { grid-column: 2; grid-row: 3; margin-top: 0; }
  .ask-grid { grid-template-columns: 1fr; }
  .ask-form .row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 20px; }
  .site-footer { padding-bottom: 96px; }
  .callbar { display: flex; }
}
@media (prefers-reduced-motion: reduce) { .chips span.pop { animation: none; } .btn:hover { transform: none; } }
