/* FoamAroma Preview, warm specialty-coffee aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --cream: #F7F2EA;
  --cream-soft: #FBF7F0;
  --paper: #FFFFFF;
  --espresso: #2A1F1A;
  --espresso-soft: #3E312A;
  --coffee: #5C4A3E;
  --mocha: #8B7463;
  --latte: #C9B8A3;
  --foam: #F0E6D6;
  --accent: #C94A1B;      /* warm copper-red */
  --accent-dark: #A83A12;
  --accent-soft: #E8A88C;
  --gold: #D9A441;
  --green: #5C7A3F;
  --border: #E8DDCC;
  --border-soft: #F0E6D6;
  --shadow-sm: 0 2px 6px rgba(42, 31, 26, 0.04);
  --shadow-md: 0 8px 24px rgba(42, 31, 26, 0.06);
  --shadow-lg: 0 20px 60px rgba(42, 31, 26, 0.08);
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Space Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--espresso);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  font-weight: 400;
}

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
a:hover { border-bottom-color: var(--accent); }

img { max-width: 100%; height: auto; }

/* ============ HEADER ============ */
.header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.92);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-left { display: flex; align-items: center; gap: 14px; }
.header-logo {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  padding: 2px;
  background: var(--paper);
}
.header-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--espresso);
  letter-spacing: -0.01em;
}
.header-subtitle {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mocha);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}
.back-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--coffee);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--foam);
  transition: background 0.2s;
}
.back-link:hover { background: var(--latte); border-bottom: none; }

/* ============ LAYOUT ============ */
.container { max-width: 860px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ============ HERO ============ */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(ellipse at top right, rgba(201, 74, 27, 0.06), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(217, 164, 65, 0.05), transparent 50%),
    var(--cream-soft);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201, 74, 27, 0.04), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 22px;
  display: inline-block;
  padding: 6px 14px;
  background: rgba(201, 74, 27, 0.08);
  border-radius: 999px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  line-height: 1.05;
  color: var(--espresso);
  margin-bottom: 24px;
  letter-spacing: -0.025em;
}
.hero h1 span {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.hero-desc {
  font-size: 19px;
  color: var(--coffee);
  max-width: 680px;
  line-height: 1.65;
  font-weight: 400;
}
.hero-desc strong { color: var(--espresso); font-weight: 600; }

/* ============ SECTIONS ============ */
.section { padding: 64px 0; border-bottom: 1px solid var(--border-soft); }
.section:last-of-type { border-bottom: none; }
.section-alt { background: var(--cream-soft); }

.section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mocha);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--espresso);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.section h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  margin: 32px 0 14px;
  color: var(--espresso);
  letter-spacing: -0.01em;
}

.section p {
  color: var(--espresso-soft);
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.75;
}
.section p strong { color: var(--espresso); font-weight: 600; }

/* ============ CARDS / GRID ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  opacity: 0;
  transition: opacity 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}
.card:hover::before { opacity: 1; }
.card a {
  color: var(--espresso);
  display: block;
  border-bottom: none;
}
.card a:hover { border-bottom: none; }
.card-eyebrow {
  margin-bottom: 14px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--espresso);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.card p {
  font-size: 15px;
  color: var(--coffee);
  margin: 0;
  line-height: 1.6;
}

/* ============ PILLS ============ */
.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 999px;
}
.pill-ready {
  background: rgba(92, 122, 63, 0.12);
  color: var(--green);
  border: 1px solid rgba(92, 122, 63, 0.25);
}
.pill-draft {
  background: rgba(217, 164, 65, 0.15);
  color: #8B6A1F;
  border: 1px solid rgba(217, 164, 65, 0.3);
}
.pill-new {
  background: rgba(201, 74, 27, 0.1);
  color: var(--accent);
  border: 1px solid rgba(201, 74, 27, 0.25);
}
.pill-blocked {
  background: rgba(92, 74, 62, 0.08);
  color: var(--coffee);
  border: 1px solid rgba(92, 74, 62, 0.2);
}

/* ============ CALLOUT ============ */
.callout {
  background: var(--paper);
  border-left: 4px solid var(--accent);
  padding: 24px 32px;
  margin: 28px 0;
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow-sm);
}
.callout strong { color: var(--accent); }
.callout-notice {
  border-left-color: var(--gold);
  background: rgba(217, 164, 65, 0.06);
}
.callout-notice strong { color: #8B6A1F; }

/* ============ TABLES ============ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
th {
  background: var(--espresso);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 20px;
  text-align: left;
}
td {
  padding: 16px 20px;
  color: var(--espresso-soft);
  border-bottom: 1px solid var(--border-soft);
  line-height: 1.55;
}
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--cream-soft); }
td strong { color: var(--espresso); font-weight: 600; }

/* ============ BLOCKQUOTES ============ */
blockquote {
  background: var(--paper);
  padding: 32px 36px 32px 44px;
  margin: 28px 0;
  border-radius: 4px 16px 16px 4px;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  color: var(--espresso);
  line-height: 1.45;
  position: relative;
  letter-spacing: -0.005em;
}
blockquote::before {
  content: '"';
  position: absolute;
  top: 0; left: 14px;
  font-family: var(--font-display);
  font-size: 72px;
  color: var(--accent-soft);
  line-height: 1;
  opacity: 0.6;
}
blockquote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--coffee);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.02em;
}
blockquote cite::before { content: ''; }

/* ============ CODE ============ */
pre {
  background: var(--espresso);
  color: var(--cream);
  border-radius: 12px;
  padding: 24px 28px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--foam);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--accent-dark);
  font-weight: 500;
}
pre code { background: none; padding: 0; color: inherit; font-weight: 400; }

/* ============ LISTS ============ */
ul, ol { margin: 16px 0 20px 8px; padding-left: 22px; color: var(--espresso-soft); }
li { margin-bottom: 10px; line-height: 1.65; padding-left: 6px; }
li::marker { color: var(--accent); }
li strong { color: var(--espresso); font-weight: 600; }

/* ============ BLOCK PREVIEW ============ */
.block-preview {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 40px;
  margin: 24px 0;
  box-shadow: var(--shadow-md);
  position: relative;
}
.block-preview::after {
  content: 'PREVIEW';
  position: absolute;
  top: 14px; right: 18px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--latte);
  letter-spacing: 0.18em;
}
.block-preview h3:first-child { margin-top: 0; }
.block-preview h3 {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--espresso);
  margin: 24px 0 12px;
}
.block-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  align-items: center;
}
.block-meta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mocha);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

/* ============ FOOTER ============ */
.footer {
  padding: 56px 0 64px;
  background: var(--espresso);
  color: var(--latte);
  font-size: 13px;
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  margin-top: 80px;
}
.footer .container { color: var(--latte); }

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 36px; }
  .hero-desc { font-size: 17px; }
  .section { padding: 48px 0; }
  .section h2 { font-size: 28px; }
  .section h3 { font-size: 20px; }
  .container, .container-wide { padding: 0 22px; }
  .header-inner { padding: 0 22px; }
  .block-preview { padding: 24px 22px; }
  blockquote { padding: 22px 24px 22px 32px; font-size: 18px; }
  blockquote::before { font-size: 56px; left: 8px; }
  th, td { padding: 12px 14px; font-size: 14px; }
  pre { font-size: 12px; padding: 18px 20px; }
}
