/* Alaala Butong — site styles.
   Layout: one long café homepage, cream daylight sections broken by one deep-roast story band. */
:root {
  --roast: #2B1A0E;      /* Deep Coffee Brown: text, story band */
  --coffee: #4B2E1A;     /* Coffee Brown: primary buttons, headings */
  --tan: #A67C52;        /* Warm Tan: accents, rules */
  --gold: #A8842F;       /* logo gold: small labels */
  --cream: #F6EAD7;      /* page background */
  --ivory: #FFF8ED;      /* cards and panels */
  --logo-bg: #FFFCE9;    /* matches the logo file's background */
  --olive: #5C6F3B;      /* tags */
  --muted: #6E5A48;      /* secondary text on cream */
  --line: rgba(166, 124, 82, .35);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--cream); color: var(--roast); font-family: var(--body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; color: var(--coffee); }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; border-radius: 4px; }
.label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--coffee); color: var(--ivory); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--cream); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 12px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--coffee); text-decoration: none; letter-spacing: .02em; }
nav.site { display: flex; gap: 4px 22px; font-size: 15px; font-weight: 500; }
nav.site a { text-decoration: none; color: var(--roast); white-space: nowrap; }
nav.site a:hover { color: var(--tan); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; border-radius: 999px; padding: 12px 22px; border: 2px solid var(--coffee); cursor: pointer; }
.btn.primary { background: var(--coffee); color: var(--ivory); }
.btn.primary:hover { background: var(--roast); border-color: var(--roast); }
.btn.ghost { background: transparent; color: var(--coffee); }
.btn.ghost:hover { background: var(--ivory); }
.btn.small { padding: 8px 16px; font-size: 14px; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-block: 56px 64px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); letter-spacing: -.01em; margin-top: 14px; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--tan); }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 32em; margin-top: 20px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.hero .meta span + span::before { content: "•"; color: var(--tan); margin-right: 8px; }
.hero-logo { position: relative; min-width: 0; }
.hero-logo img { display: block; width: 100%; max-width: 440px; height: auto; margin-inline: auto; background: var(--logo-bg); padding: 28px; border-radius: 28px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(43, 26, 14, .35); }

/* Story band */
.story { background: var(--roast); color: var(--ivory); }
.story .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; padding-block: 72px; }
.story h2 { color: var(--ivory); font-size: clamp(32px, 4.4vw, 52px); }
.story h2 em { font-style: italic; font-weight: 400; color: var(--tan); }
.story .label { color: var(--tan); margin-bottom: 14px; }
.story .word { margin-top: 28px; font-size: 15px; color: rgba(255, 248, 237, .72); border-top: 1px solid rgba(166, 124, 82, .5); padding-top: 16px; max-width: 22em; }
.story .word b { font-family: var(--display); font-style: italic; font-weight: 600; color: var(--ivory); font-size: 18px; }
.story .copy { display: grid; gap: 18px; font-size: 18px; line-height: 1.75; max-width: 36em; min-width: 0; }
.story .copy p:first-child::first-letter { font-family: var(--display); font-size: 3.3em; float: left; line-height: .9; padding: 6px 10px 0 0; color: var(--tan); }
.story .sign { font-family: var(--display); font-style: italic; font-size: 24px; color: var(--tan); }

/* Section heads */
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 48px); margin-top: 8px; }
.sec-head p { color: var(--muted); max-width: 30em; }

/* Menu */
.menu .wrap { padding-block: 72px; }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cat { background: var(--ivory); border-radius: 14px; padding: 24px; border: 1px solid rgba(166, 124, 82, .25); min-width: 0; }
.cat h3 { font-size: 24px; }
.cat .sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.cat ul { list-style: none; padding: 0; margin: 16px 0 0; }
.cat li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 8px; border-top: 1px dotted rgba(166, 124, 82, .5); font-size: 15.5px; }
.cat li .name { min-width: 0; }
.cat .sizes, .cat .prices { display: grid; grid-template-columns: repeat(3, 3.1em); text-align: right; font-variant-numeric: tabular-nums; flex: none; }
.cat .sizes { margin: 14px 0 -10px auto; width: max-content; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--gold); }
.cat .prices { font-size: 14.5px; color: var(--muted); }
.cat li .origin { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }
.cat li .price { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cat.feature { background: var(--coffee); border-color: var(--coffee); color: var(--ivory); }
.cat.feature h3 { color: var(--ivory); }
.cat.feature .sub { color: rgba(255, 248, 237, .75); }
.cat.feature li { border-top-color: rgba(255, 248, 237, .25); }
.cat.feature li .origin { color: #E2C08F; }
.cat.feature .sizes { color: #E2C08F; }
.cat.feature .prices { color: rgba(255, 248, 237, .8); }
.cat.custom { grid-column: span 2; display: grid; align-content: center; gap: 16px; background: var(--roast); border-color: var(--roast); color: var(--ivory); }
.cat.custom h3 { color: var(--ivory); }
.cat.custom .usps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.cat.custom .usps li { display: block; border: 0; padding: 0 0 0 18px; position: relative; color: rgba(255, 248, 237, .82); font-size: 15px; }
.cat.custom .usps li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--tan); }
.cat.custom .usps b { color: var(--ivory); }
.cat.custom .btn { justify-self: start; background: var(--ivory); color: var(--roast); border-color: var(--ivory); }
.cat.custom .btn:hover { background: var(--cream); border-color: var(--cream); }

/* Brew bar */
.brew { background: var(--ivory); border-block: 1px solid rgba(166, 124, 82, .3); }
.brew .wrap { padding-block: 72px; }
.brew-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--coffee); }
.method { padding: 22px 22px 24px; border-bottom: 1px solid rgba(166, 124, 82, .4); display: grid; gap: 6px; align-content: start; min-width: 0; }
.method:nth-child(3n+1) { padding-left: 0; }
.method:nth-child(3n) { padding-right: 0; }
.method:not(:nth-child(3n)) { border-right: 1px solid rgba(166, 124, 82, .4); }
.method h3 { font-size: 22px; }
.method p { font-size: 15px; color: var(--muted); }
.method dl { display: flex; gap: 18px; margin: 6px 0 0; font-size: 13px; }
.method dt { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-size: 11px; }
.method dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 500; }
.brew .fine { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* Instagram */
.insta .wrap { padding-block: 72px; }
.feed { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { aspect-ratio: 4 / 5; max-width: 100%; border-radius: 10px; display: flex; align-items: end; padding: 14px; font-family: var(--display); font-size: 17px; line-height: 1.2; color: var(--ivory); text-decoration: none; transition: transform .2s; }
.tile:hover { transform: translateY(-3px); }
.tile:nth-child(1) { background: var(--roast); }
.tile:nth-child(2) { background: var(--tan); }
.tile:nth-child(3) { background: var(--olive); }
.tile:nth-child(4) { background: var(--coffee); }
.tile small { display: block; font-family: var(--body); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; margin-bottom: 6px; }

/* Order */
.order .wrap { padding-block: 0 72px; }
.order-card { background: var(--coffee); color: var(--ivory); border-radius: 20px; padding: 44px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.order-card .label { color: #E2C08F; }
.order-card h2 { color: var(--ivory); font-size: clamp(30px, 4vw, 44px); margin-top: 10px; }
.order-card p { color: rgba(255, 248, 237, .8); margin-top: 12px; max-width: 30em; }
.order-links { display: grid; gap: 10px; }
.order-links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--ivory); color: var(--roast); text-decoration: none; font-weight: 700; padding: 14px 18px; border-radius: 12px; }
.order-links a span { color: var(--tan); font-weight: 500; font-size: 14px; }
.order-links a:hover { background: var(--cream); }

/* Contact */
.contact .wrap { padding-block: 0 72px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
.contact h2 { font-size: clamp(30px, 4vw, 44px); margin-top: 8px; }
.contact .details { margin-top: 18px; display: grid; gap: 8px; color: var(--muted); }
.contact .details b { color: var(--roast); font-weight: 700; }
form.contact-form { display: grid; gap: 14px; background: var(--ivory); border: 1px solid var(--line); border-radius: 16px; padding: 24px; min-width: 0; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field textarea { font: inherit; color: var(--roast); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.hidden-field { position: absolute; left: -9999px; }

/* Footer */
footer.site { background: var(--roast); color: rgba(255, 248, 237, .78); font-size: 14.5px; }
footer.site .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-block: 48px 28px; }
footer.site h3 { color: var(--ivory); font-size: 22px; margin-bottom: 10px; }
footer.site h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--tan); }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--ivory); }
footer.site .tag { font-family: var(--display); font-style: italic; color: var(--tan); margin-top: 8px; }
footer.site .base { grid-column: 1 / -1; border-top: 1px solid rgba(166, 124, 82, .35); padding-top: 18px; font-size: 13px; }

/* Thank-you page */
.thanks { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 72px; }
.thanks h1 { font-size: clamp(36px, 6vw, 60px); }
.thanks p { color: var(--muted); margin-block: 16px 28px; }

@media (max-width: 860px) {
  .hero .wrap, .story .wrap, .order-card, .contact .wrap { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 260px; padding: 18px; }
  .menu-grid { grid-template-columns: minmax(0, 1fr); }
  .brew-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat.custom { grid-column: auto; }
  .method, .method:nth-child(3n+1), .method:nth-child(3n) { padding: 20px 16px 20px 0; border-right: 0; }
  .method:nth-child(2n) { padding-left: 16px; padding-right: 0; border-left: 1px solid rgba(166, 124, 82, .4); }
  .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer.site .wrap { grid-template-columns: 1fr 1fr; }
  footer.site .wrap > div:first-child { grid-column: 1 / -1; }
  nav.site { order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; }
}
@media (max-width: 560px) {
  .brew-grid { grid-template-columns: 1fr; }
  .cat.custom .usps { grid-template-columns: 1fr; }
  .method:nth-child(2n) { padding-left: 0; border-left: 0; }
  .order-card { padding: 28px 22px; }
  .hero .wrap { padding-block: 32px 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile { transition: none; }
}
