/* Delectable AI × Google — Shared style sheet
 * Matches the cream/navy/gold language of Joseph's executive deck.
 */

:root {
  --cream:   #f4ede0;
  --cream-2: #ede4d3;
  --paper:   #faf6ee;
  --ink:     #0e1b3a;
  --ink-2:   #142348;
  --ink-soft:#1a2f5e;
  --gold:    #c89b3c;
  --gold-2:  #b8862a;
  --rust:    #c25a3a;
  --green:   #4d7c4d;
  --google-blue:  #4285f4;
  --google-red:   #ea4335;
  --google-yellow:#fbbc04;
  --google-green: #34a853;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: var(--cream); color: var(--ink); font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .display { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }
.ital { font-style: italic; }
a { color: inherit; text-decoration: none; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.04em; }

/* ============= TOP NAV ============= */
header.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 56px; border-bottom: 1px solid rgba(14,27,58,0.08);
  position: sticky; top: 0; background: var(--cream); z-index: 50;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, #a6d4d3, #6fb8b8);
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.brand-text { font-family: 'Playfair Display'; font-size: 20px; font-weight: 600; color: var(--ink); }
.brand-text .tm { font-size: 9px; vertical-align: super; }
.brand-sep { color: rgba(14,27,58,0.3); padding: 0 8px; font-weight: 300; }
.brand-for { font-size: 12px; color: rgba(14,27,58,0.55); letter-spacing: 0.05em; text-transform: uppercase; }
.g-mark {
  display: inline-flex; width: 22px; height: 22px; border-radius: 50%;
  background: conic-gradient(from -30deg, #ea4335 0%, #fbbc04 25%, #34a853 50%, #4285f4 75%, #ea4335 100%);
  align-items: center; justify-content: center;
  font-family: 'Inter'; font-weight: 700; color: white; font-size: 12px;
  vertical-align: middle;
}
.meta-pill {
  padding: 6px 12px; border-radius: 100px; background: var(--ink);
  color: var(--cream); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 500;
}
.back-link {
  font-size: 12px; letter-spacing: 0.05em; color: rgba(14,27,58,0.6);
  margin-right: 16px;
}
.back-link:hover { color: var(--ink); }

/* ============= LAYOUT ============= */
.container { max-width: 1280px; margin: 0 auto; padding: 0 56px; }
section.page-hero { padding: 80px 56px 48px; max-width: 1280px; margin: 0 auto; }
section.section { padding: 56px 56px; max-width: 1280px; margin: 0 auto; }
section.darkband { background: var(--ink); color: var(--cream); padding: 80px 56px; }
section.darkband .inner { max-width: 1280px; margin: 0 auto; }
section.paperband { background: var(--paper); padding: 56px 56px; }
section.paperband .inner { max-width: 1280px; margin: 0 auto; }

.eyebrow {
  color: var(--rust); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 600;
}
section.darkband .eyebrow { color: var(--gold); }
.title-xl { font-size: clamp(48px, 7vw, 96px); line-height: 0.98; }
.title-lg { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; }
.title-md { font-size: clamp(28px, 3.5vw, 42px); line-height: 1.1; }
.lede { max-width: 65ch; font-size: 17px; line-height: 1.55; color: rgba(14,27,58,0.7); }
section.darkband .lede { color: rgba(244,237,224,0.72); }

/* ============= CARDS ============= */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.card {
  background: var(--paper); padding: 28px; border-radius: 4px;
  border-top: 3px solid var(--ink);
  transition: all 0.2s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -16px rgba(14,27,58,0.18); }
.card.gold { background: var(--gold); border-top-color: var(--ink); }
.card.dark { background: var(--ink); color: var(--cream); border-top-color: var(--gold); }
.card.dark h3, .card.dark h4 { color: var(--cream); }
.card.dark p { color: rgba(244,237,224,0.75); }
.card.cream-2 { background: var(--cream-2); }
.card-num { font-family: 'Playfair Display'; font-style: italic; font-size: 32px; color: var(--gold-2); margin-bottom: 8px; line-height: 1; }
.card.dark .card-num { color: var(--gold); }
.card.gold .card-num { color: var(--ink); }
.card-eyebrow { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(14,27,58,0.5); font-weight: 600; margin-bottom: 10px; }
.card.dark .card-eyebrow { color: rgba(244,237,224,0.55); }
.card.gold .card-eyebrow { color: rgba(14,27,58,0.6); }
.card h3 { font-size: 22px; line-height: 1.15; margin-bottom: 10px; }
.card p { font-size: 14px; line-height: 1.55; color: rgba(14,27,58,0.75); flex: 1; }

/* ============= BIG NUMBERS ============= */
.bignum { font-family: 'Playfair Display'; line-height: 1; color: var(--ink); }
.bignum .em { font-style: italic; color: var(--gold-2); }
section.darkband .bignum { color: var(--cream); }
section.darkband .bignum .em { color: var(--gold); }

.metric-row {
  display: grid; gap: 0;
  border-top: 1px solid rgba(14,27,58,0.12); border-bottom: 1px solid rgba(14,27,58,0.12);
}
section.darkband .metric-row { border-color: rgba(244,237,224,0.18); }
.metric-cell { padding: 28px; border-right: 1px solid rgba(14,27,58,0.12); }
section.darkband .metric-cell { border-right-color: rgba(244,237,224,0.18); }
.metric-cell:last-child { border-right: none; }
.metric-eyebrow { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--rust); font-weight: 600; }
section.darkband .metric-eyebrow { color: var(--gold); }
.metric-big { font-family: 'Playfair Display'; font-size: 48px; line-height: 1; margin: 12px 0 6px; }
.metric-big .em { font-style: italic; color: var(--gold-2); }
section.darkband .metric-big { color: var(--cream); }
.metric-sub { font-size: 13px; line-height: 1.45; color: rgba(14,27,58,0.6); }
section.darkband .metric-sub { color: rgba(244,237,224,0.6); }

/* ============= BUTTONS ============= */
.btn { display: inline-block; padding: 12px 22px; border-radius: 100px; font-size: 13px; font-weight: 600; transition: all 0.2s; cursor: pointer; border: none; }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--gold); color: var(--ink); }
.btn-ghost { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--ink); color: var(--gold); }

/* ============= TAGS ============= */
.tag { display: inline-block; padding: 4px 10px; border-radius: 100px; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; vertical-align: middle; margin-left: 8px; }
.tag.new { background: var(--gold); color: var(--ink); }
.tag.live { background: var(--google-green); color: white; }
.tag.hot { background: var(--rust); color: var(--cream); }
.tag.gcp { background: var(--google-blue); color: white; }

/* ============= ROMAN CHAPTERS ============= */
.chapter { display: grid; grid-template-columns: 200px 1fr; gap: 60px; align-items: start; padding: 56px 0 24px; }
@media (max-width: 768px) { .chapter { grid-template-columns: 1fr; gap: 16px; } }
.roman { font-family: 'Playfair Display'; font-style: italic; font-size: 120px; line-height: 1; color: var(--ink); }
section.darkband .roman { color: var(--gold); }

/* ============= TABLES ============= */
table.attrs {
  width: 100%; border-collapse: collapse; margin-top: 24px;
  font-size: 14px; background: var(--paper); border-radius: 4px; overflow: hidden;
}
table.attrs thead { background: var(--ink); color: var(--cream); }
table.attrs th, table.attrs td { padding: 14px 18px; text-align: left; }
table.attrs th { font-family: 'Inter'; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
table.attrs tbody tr { border-bottom: 1px solid rgba(14,27,58,0.07); }
table.attrs tbody tr:last-child { border-bottom: none; }
table.attrs tbody tr:hover { background: var(--cream-2); }
table.attrs td .mono { background: rgba(14,27,58,0.05); padding: 2px 8px; border-radius: 3px; font-size: 12px; color: var(--ink-soft); }
table.attrs .check { color: var(--green); font-size: 18px; font-weight: 700; }
table.attrs .x { color: rgba(14,27,58,0.25); font-size: 18px; font-weight: 700; }

/* ============= FOOTER ============= */
footer { background: var(--ink); color: rgba(244,237,224,0.6); padding: 56px; text-align: center; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
footer .ftr-quote { font-family: 'Playfair Display'; font-style: italic; font-size: 26px; color: var(--cream); text-transform: none; letter-spacing: 0; max-width: 30ch; margin: 0 auto 24px; line-height: 1.3; }
footer .ftr-contact { margin-top: 18px; }
footer .ftr-contact a { color: var(--gold); text-decoration: none; }

/* ============= MOBILE ============= */
@media (max-width: 640px) {
  header.top, section.page-hero, section.section, section.darkband, section.paperband, .container { padding-left: 24px; padding-right: 24px; }
}
