/* Occasion Buddy — brand and layout tokens */
:root {
  --primary: #EA580C;
  --secondary: #272369;
  --primary-dark: #B83D06;
  --ink: #211F3C;
  --muted: #626174;
  --paper: #FFFFFF;
  --soft: #F5F5FA;
  --line: #DEDEE9;
  --font: 'Space Grotesk', Arial, sans-serif;
  --radius: 18px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; font: 400 1rem/1.7 var(--font); color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 5px; }
::selection { background: #FFDAC5; color: var(--secondary); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--secondary); line-height: 1.12; letter-spacing: -.045em; }
h1 { font-size: clamp(2.65rem, 5.2vw, 4.7rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); }
h3 { font-size: clamp(1.6rem, 2.5vw, 2.15rem); }
p { margin-bottom: 1.4rem; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 16px; padding: 12px 18px; background: var(--secondary); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.nav { min-height: 94px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--secondary); font-size: 1.25rem; font-weight: 700; letter-spacing: -.055em; white-space: nowrap; }
/* Display the supplied logo tightly while retaining its original image file. */
.brand-mark { position: relative; display: block; flex: 0 0 56px; width: 56px; height: 40px; overflow: hidden; background: white; }
.brand-mark img { position: static; width: 56px; height: 40px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: .9rem; font-weight: 600; }
.nav-links a { padding: 12px 0; }
.nav-links a:hover { color: var(--primary-dark); }
.nav-links [aria-current='page'] { border-bottom: 2px solid var(--primary); }
.hero { padding: 66px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--primary-dark); text-transform: uppercase; font-size: .8rem; letter-spacing: .13em; font-weight: 700; margin-bottom: 20px; }
.eyebrow::before { content: ''; display: inline-block; width: 26px; height: 2px; background: var(--primary); }
.hero h1 { margin-bottom: 25px; }
.hero h1 span { color: var(--primary); }
.hero-copy > p { color: var(--muted); font-size: 1.13rem; max-width: 490px; margin-bottom: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 50px; padding: 13px 22px; border: 2px solid transparent; border-radius: 8px; background: var(--secondary); color: white; font-size: .94rem; font-weight: 600; transition: background .18s ease; }
.button:hover { background: #39328E; }
.button-arrow { color: #FFB17F; font-size: 1.35rem; line-height: 1; }
.hero-figure { margin: 0; position: relative; }
.hero-photo { width: 100%; aspect-ratio: 1.06; object-fit: cover; border-radius: 100px 18px 18px 18px; }
.photo-caption { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 15px 0 0; color: var(--muted); font-size: .8rem; }
.photo-caption strong { color: var(--secondary); font-size: .85rem; }
.section { padding: 66px 0 78px; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; }
.section-head h2 { margin: 0; }
.section-head .eyebrow { margin-bottom: 13px; }
.issue-label { color: var(--muted); font-size: .88rem; margin: 0; }
.feature-card { display: grid; grid-template-columns: 43% 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature-image img { width: 100%; height: 100%; min-height: 350px; object-fit: cover; }
.feature-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 40px 44px; }
.tag { display: inline-block; background: #FFF0E6; color: var(--primary-dark); padding: 5px 11px; border-radius: 5px; font-size: .8rem; font-weight: 600; }
.feature-content h3 { margin: 20px 0 15px; }
.feature-content p { color: var(--muted); margin-bottom: 22px; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .86rem; }
.meta-separator { color: #9693A9; }
.text-link { display: inline-flex; align-items: center; gap: 22px; font-weight: 600; color: var(--secondary); border-bottom: 1px solid var(--primary); padding-bottom: 4px; }
.text-link:hover { color: var(--primary-dark); }
.feature-content .text-link { margin-top: 22px; }
.about { padding: 68px 0; background: var(--secondary); color: white; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.about .eyebrow { color: #FFB17F; }
.about h2 { color: white; margin-bottom: 0; }
.about p { color: #E3E1F4; margin: 0; font-size: 1.08rem; }
.site-footer { padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-inner p { margin: 10px 0 0; color: var(--muted); font-size: .8rem; }
.footer-contact { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.gmail-link { display: inline-block; padding: 8px 0; color: var(--secondary); font-weight: 600; overflow-wrap: anywhere; }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 18px 0 0; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; color: var(--secondary); background: var(--paper); }
.social-links svg { display: block; flex-shrink: 0; }
.social-links a:hover { background: #FFF0E6; border-color: var(--primary); }
.social-links a:hover, .gmail-link:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.top-link { padding: 12px 0; font-size: .9rem; color: var(--secondary); font-weight: 600; }
.breadcrumbs { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; padding: 25px 0; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 4px; }
.article-header { max-width: 940px; padding: 25px 0 42px; }
.article-header h1 { margin: 20px 0 24px; font-size: clamp(2.5rem, 5vw, 4.3rem); }
.article-header .dek { color: var(--muted); font-size: 1.18rem; max-width: 780px; }
.article-figure { margin: 0; }
.article-figure > img { width: 100%; max-height: 530px; object-fit: cover; border-radius: var(--radius); aspect-ratio: 2.2; }
.article-figure figcaption { margin-top: 10px; font-size: .8rem; color: var(--muted); }
.article-layout { display: grid; grid-template-columns: 250px minmax(0, 710px); justify-content: space-between; gap: 70px; padding: 54px 0 78px; }
.article-sidebar { align-self: start; position: sticky; top: 30px; }
.toc { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.toc summary { cursor: pointer; font-weight: 700; color: var(--secondary); }
.toc ol { margin: 18px 0 0; padding-left: 20px; font-size: .86rem; }
.toc li { padding: 0 0 12px 3px; }
.toc a:hover { color: var(--primary-dark); text-decoration: underline; }
.article-body { font-size: 1.08rem; line-height: 1.85; }
.article-body .intro { font-size: 1.24rem; color: var(--secondary); }
.article-body h2 { font-size: 1.8rem; margin: 40px 0 16px; line-height: 1.25; }
.article-body ul { padding-left: 22px; }
.article-body li { padding-left: 4px; margin-bottom: 12px; }
.tip { background: #FFF5EE; border-left: 4px solid var(--primary); padding: 23px 26px; margin: 30px 0; }
.tip p { margin: 0; }
.article-end { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 28px; }
.not-found { padding: 100px 0; min-height: 60vh; }
@media (max-width: 960px) {
  .hero-grid { gap: 34px; }
  .hero-photo { aspect-ratio: .86; }
  .feature-content { padding: 30px; }
  .article-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 32px; }
  .about-grid { gap: 42px; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 36px); }
  .nav { min-height: 80px; gap: 14px; flex-wrap: wrap; padding-block: 14px; }
  .brand { font-size: 1.12rem; gap: 7px; }
  .nav-links { gap: 18px; font-size: .85rem; }
  .hero { padding: 40px 0 46px; }
  .hero-grid, .feature-card, .about-grid, .article-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 34px; }
  .hero-copy > p { font-size: 1rem; }
  .hero h1 { max-width: 580px; }
  .hero-photo { aspect-ratio: 1.32; border-radius: 60px 14px 14px 14px; }
  .section { padding: 46px 0 52px; }
  .section-head { display: block; }
  .issue-label { margin-top: 12px; }
  .feature-image img { min-height: 0; height: 230px; }
  .feature-content { padding: 26px; }
  .about { padding: 44px 0; }
  .about-grid { gap: 24px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 12px; }
  .article-header { padding-top: 10px; }
  .article-header .dek { font-size: 1.05rem; }
  .article-figure > img { aspect-ratio: 1.35; }
  .article-layout { padding-top: 32px; gap: 30px; }
  .article-sidebar { position: static; }
  .article-body { font-size: 1rem; }
  .article-body h2 { font-size: 1.6rem; }
}
@media (max-width: 430px) {
  .nav { flex-direction: column; align-items: flex-start; gap: 5px; }
  .nav-links { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .article-sidebar, .article-end .button { display: none; }
  body { color: #000; font-size: 11pt; }
  .container { width: 100%; }
  .article-layout { display: block; padding: 20px 0; }
  h1, h2, h3 { color: #000; break-after: avoid; }
  .article-figure > img { max-height: 240px; }
}

/* Blog directory: add entries through data/posts.json and tools/build-blog.mjs. */
.blog-list-header { padding: 0 0 48px; background: var(--soft); }
.blog-list-header h1 { max-width: 850px; margin-bottom: 22px; }
.blog-list-description { max-width: 650px; color: var(--muted); font-size: 1.12rem; margin: 0; }
.blog-list-section { min-height: 440px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.blog-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.blog-card-image img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.blog-card-content { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 24px; }
.blog-card-content h2 { font-size: 1.5rem; line-height: 1.3; margin: 18px 0 12px; }
.blog-card-content h2 a:hover { color: var(--primary-dark); }
.blog-card-content > p { color: var(--muted); font-size: .95rem; }
.blog-card-content .article-meta { margin-top: auto; font-size: .8rem; }
.blog-card-content .text-link { margin-top: 20px; font-size: .9rem; }
.blog-empty { color: var(--muted); grid-column: 1 / -1; }
@media (max-width: 1000px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } .blog-list-header { padding-bottom: 34px; } }

/* Contact and legal pages */
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .88rem; }
.footer-legal a { padding-block: 8px; text-decoration: underline; text-underline-offset: 4px; }
.content-header { max-width: 900px; padding: 22px 0 35px; }
.content-header h1 { font-size: clamp(2.3rem, 5vw, 4rem); overflow-wrap: anywhere; }
.content-header > p:last-child { color: var(--muted); font-size: 1.12rem; max-width: 700px; }
.legal-content { max-width: 800px; padding-bottom: 70px; }
.legal-content h2 { font-size: 1.6rem; line-height: 1.3; margin: 34px 0 14px; }
.legal-content a { color: var(--secondary); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-content li { margin-bottom: 15px; }
.policy-date { color: var(--muted); font-size: .88rem; border-block: 1px solid var(--line); padding: 15px 0; }
.contact-intro { padding: 30px; background: var(--soft); border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.contact-intro h2 { font-size: 1.8rem; }
.contact-intro p { max-width: 550px; margin-bottom: 0; }
.contact-intro .button { flex-shrink: 0; overflow-wrap: anywhere; }
.contact-section { padding: 54px 0 70px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-card { display: flex; align-items: center; gap: 15px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; color: var(--secondary); }
.contact-card:hover { border-color: var(--primary); background: #FFF5EE; }
.contact-card strong, .contact-card > span > span { display: block; }
.contact-card > span > span { color: var(--muted); font-size: .85rem; }
.contact-arrow { margin-left: auto; color: var(--primary-dark); }
.contact-note { color: var(--muted); margin: 25px 0 0; max-width: 750px; font-size: .9rem; }
.nav-links { flex-wrap: wrap; }
@media(max-width: 960px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .contact-intro { flex-direction: column; align-items: flex-start; } }
@media(max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } .contact-intro { padding: 22px; } .contact-intro .button { max-width: 100%; font-size: .85rem; padding-inline: 12px; flex-shrink: 1; } }
