/* ============================================================================
   O'LEARY'S RESTAURANT — STYLES
   Warm vintage luncheonette: cream paper, brick red, vintage teal, mustard pop.
   Hand-authored (no framework, no build step). Edit freely.
============================================================================ */

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* color — warm vintage luncheonette (cozy, golden, terracotta) */
  --cream:        #f7e7c9;
  --cream-deep:   #efd9b4;
  --paper:        #fff7e9;
  --espresso:     #2e2016;
  --espresso-60:  #6a5641;
  --brick:        #c0432a;
  --brick-dark:   #99311c;
  --teal:         #2a7165;
  --teal-dark:    #1a4f46;
  --mustard:      #df9b2c;
  --mustard-soft: #f0c067;
  --line:         #e6d2a9;

  /* type */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* metrics */
  --header-h: 68px;
  --maxw: 1120px;
  --radius: 14px;
  --shadow: 0 14px 40px -18px rgba(43, 33, 26, .45);
  --shadow-sm: 0 6px 18px -10px rgba(43, 33, 26, .4);
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* sticky-header offset for anchor jumps */
[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

/* ---- Base ---------------------------------------------------------------- */
body {
  font-family: var(--body);
  color: var(--espresso);
  background-color: var(--cream);
  /* warm ambient glow + faint paper grain */
  background-image:
    radial-gradient(110% 70% at 12% -5%, rgba(223,155,44,.22), transparent 55%),
    radial-gradient(90% 60% at 100% 0%, rgba(192,67,42,.10), transparent 50%),
    radial-gradient(circle at 1px 1px, rgba(46,32,22,.05) 1px, transparent 0);
  background-size: 100% 100%, 100% 100%, 4px 4px;
  background-attachment: fixed, fixed, scroll;
  line-height: 1.6;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.05; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem); }
p { text-wrap: pretty; }

.wrap { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 2rem + 7vw, 6.5rem); }
.eyebrow {
  font-family: var(--body);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brick);
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brick); display: inline-block; }
.section-head { max-width: 56ch; margin-bottom: 2.4rem; }
.section-head p { color: var(--espresso-60); margin-top: .8rem; font-size: 1.075rem; }

a.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--espresso); color: var(--cream);
  padding: .7rem 1.1rem; border-radius: 8px; z-index: 200;
  text-decoration: none; transition: top .18s ease;
}
a.skip-link:focus { top: 12px; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 800; text-decoration: none;
  padding: .85rem 1.4rem; border-radius: 999px;
  border: 2px solid transparent; line-height: 1;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--brick); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brick-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.btn-ghost:hover { background: var(--espresso); color: var(--cream); transform: translateY(-2px); }
.btn-cream { background: var(--paper); color: var(--brick); }
.btn-cream:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---- Announcement strip -------------------------------------------------- */
.topbar {
  background: var(--espresso); color: var(--cream);
  font-size: .85rem; font-weight: 600;
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; align-items: center; justify-content: center; padding-block: .55rem; text-align: center; }
.topbar strong { color: var(--mustard-soft); letter-spacing: .04em; }
.topbar .dot { opacity: .4; }

/* ---- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(43,33,26,.6); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: baseline; gap: .5rem; text-decoration: none; }
.brand b { font-family: var(--display); font-size: 1.45rem; font-weight: 600; color: var(--espresso); letter-spacing: -0.02em; }
.brand .est { font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--brick); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--espresso); position: relative; padding-block: .3rem; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--brick); transition: width .2s ease; }
.nav a:not(.btn):hover::after { width: 100%; }
.nav .btn { padding: .6rem 1.1rem; }

.nav-toggle { display: none; background: none; border: 0; padding: .4rem; color: var(--espresso); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: .5rem 1.2rem 1.2rem;
    box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: .9rem .2rem; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav .btn { margin-top: .8rem; justify-content: center; }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center; padding-block: clamp(2.5rem, 1.5rem + 5vw, 5rem);
}
.hero-copy h1 { font-size: clamp(2.7rem, 1.8rem + 4.8vw, 4.6rem); font-weight: 600; }
.hero-copy h1 .sub { display: block; color: var(--brick); }
.hero-tag { font-size: 1.2rem; color: var(--espresso-60); margin-top: 1.2rem; max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-status { margin-top: 1.6rem; }

.hero-figure { position: relative; }
.hero-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.hero-figure .badge {
  position: absolute; bottom: -18px; left: -14px;
  background: var(--teal); color: var(--paper);
  font-family: var(--display); font-weight: 600;
  padding: .85rem 1.15rem; border-radius: 12px; line-height: 1.05;
  box-shadow: var(--shadow-sm); transform: rotate(-4deg);
}
.hero-figure .badge span { display: block; font-family: var(--body); font-weight: 800; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }

/* open/closed pill */
.status-pill {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--paper); border: 1px solid var(--line);
  padding: .55rem 1rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  box-shadow: var(--shadow-sm);
}
.status-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--espresso-60); position: relative; }
.status-pill[data-open="yes"] .dot { background: var(--teal); }
.status-pill[data-open="yes"] .dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--teal); opacity: .5; animation: ping 1.8s ease-out infinite; }
.status-pill[data-open="no"] .dot { background: var(--brick); }
.status-pill .muted { color: var(--espresso-60); font-weight: 600; }
@keyframes ping { 0% { transform: scale(.7); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure .badge { left: auto; right: 14px; }
}

/* ---- Info bar (CASH ONLY + hours) — the unmissable one ------------------- */
.infobar { background: var(--brick); color: var(--paper); position: relative; }
.infobar::before, .infobar::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background-image: linear-gradient(45deg, transparent 50%, var(--cream) 50%), linear-gradient(-45deg, transparent 50%, var(--cream) 50%);
  background-size: 18px 18px; background-repeat: repeat-x;
}
.infobar::before { top: 0; transform: rotate(180deg); }
.infobar::after { bottom: 0; }
.infobar .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding-block: 2.4rem; }
.info-cell { display: flex; gap: 1rem; align-items: flex-start; }
.info-cell .ico { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; background: rgba(255,250,240,.14); border-radius: 12px; }
.info-cell .ico svg { width: 26px; height: 26px; color: var(--paper); }
.info-cell h3 { font-family: var(--body); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; }
.info-cell p { margin-top: .25rem; color: color-mix(in srgb, var(--paper) 85%, transparent); font-size: 1rem; }
.info-cell.cash h3 { font-size: 1.5rem; letter-spacing: .02em; }
.info-divider { width: 1px; background: rgba(255,250,240,.22); }
@media (max-width: 720px) {
  .infobar .wrap { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ---- About --------------------------------------------------------------- */
.about .wrap { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.about-figure { position: relative; }
.about-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3/4; object-fit: cover; }
.about-figure .stamp {
  position: absolute; top: -22px; right: -10px; width: 110px; height: 110px;
  display: grid; place-items: center; text-align: center;
  background: var(--mustard); color: var(--espresso); border-radius: 50%;
  font-family: var(--display); font-weight: 600; line-height: 1; transform: rotate(8deg);
  box-shadow: var(--shadow-sm); padding: .5rem;
}
.about-figure .stamp small { display: block; font-family: var(--body); font-weight: 800; font-size: .55rem; letter-spacing: .14em; text-transform: uppercase; margin-top: .25rem; }
.about-body p + p { margin-top: 1.1rem; }
.about-body .lead { font-size: 1.2rem; color: var(--espresso); }
.confirm {
  display: inline-block; margin-top: 1.4rem;
  background: var(--cream-deep); border: 1px dashed var(--brick);
  color: var(--brick-dark); font-size: .85rem; font-weight: 700;
  padding: .5rem .85rem; border-radius: 8px;
}
@media (max-width: 820px) {
  .about .wrap { grid-template-columns: 1fr; }
  .about-figure { max-width: 380px; }
}

/* ---- Menu ---------------------------------------------------------------- */
.menu { background: var(--cream-deep); position: relative; }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 2.2rem; }
.menu-cat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.7rem; box-shadow: var(--shadow-sm);
}
.menu-cat > h3 { color: var(--brick); display: flex; align-items: baseline; gap: .6rem; }
.menu-cat > .cat-blurb { color: var(--espresso-60); font-size: .92rem; margin-top: .3rem; margin-bottom: 1rem; }
.menu-cat ul { list-style: none; padding: 0; }
.menu-item { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .5rem; padding: .55rem 0; border-bottom: 1px dotted var(--line); }
.menu-item:last-child { border-bottom: 0; }
.menu-item .name { font-weight: 700; }
.menu-item .badge {
  font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal-dark); background: color-mix(in srgb, var(--teal) 16%, transparent);
  padding: .15rem .45rem; border-radius: 999px; margin-left: .5rem; vertical-align: middle; white-space: nowrap;
}
.menu-item .price { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--espresso); white-space: nowrap; }
.menu-note {
  margin-top: 2rem; text-align: center; color: var(--espresso-60);
  font-size: .95rem; font-style: italic;
}
.menu-note strong { color: var(--brick-dark); font-style: normal; }
@media (max-width: 720px) { .menu-grid { grid-template-columns: 1fr; } }

/* ---- Visit --------------------------------------------------------------- */
.visit .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 3vw, 3.5rem); align-items: start; }
.map-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-card iframe { width: 100%; height: 420px; border: 0; }
.visit-detail h3 { margin-bottom: .2rem; }
.detail-row { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.detail-row .ico { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; background: var(--cream-deep); border-radius: 10px; color: var(--brick); }
.detail-row .ico svg { width: 22px; height: 22px; }
.detail-row .k { font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--espresso-60); }
.detail-row a { font-weight: 700; text-decoration: none; }
.detail-row a:hover { color: var(--brick); text-decoration: underline; }

.hours-table { width: 100%; border-collapse: collapse; margin-top: .4rem; }
.hours-table th { text-align: left; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--espresso-60); padding-bottom: .4rem; font-weight: 800; }
.hours-table td { padding: .4rem 0; border-bottom: 1px dotted var(--line); }
.hours-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours-table tr.is-today td { font-weight: 800; color: var(--brick-dark); }
.hours-table tr.is-today td:first-child::after { content: " · today"; font-weight: 700; color: var(--brick); font-size: .8em; }
.hours-table .closed { color: var(--espresso-60); font-style: italic; }

.tips { margin-top: 1.4rem; background: var(--cream-deep); border-left: 4px solid var(--mustard); border-radius: 0 10px 10px 0; padding: 1rem 1.2rem; }
.tips h4 { font-family: var(--body); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--espresso); margin-bottom: .5rem; }
.tips ul { margin: 0; padding-left: 1.1rem; color: var(--espresso-60); }
.tips li { margin-bottom: .3rem; }
.visit-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
@media (max-width: 820px) { .visit .wrap { grid-template-columns: 1fr; } .map-card { order: 2; } }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--espresso); color: var(--cream); padding-block: 3rem 2rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h2.fbrand { font-family: var(--display); font-size: 1.8rem; color: var(--cream); }
.site-footer .est { font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--mustard-soft); }
.site-footer p, .site-footer a { color: color-mix(in srgb, var(--cream) 82%, transparent); text-decoration: none; }
.site-footer a:hover { color: var(--mustard-soft); }
.site-footer h5 { font-family: var(--body); font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mustard-soft); margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { padding: .22rem 0; }
.footer-bottom { border-top: 1px solid rgba(250,243,227,.16); margin-top: 2.2rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; justify-content: space-between; font-size: .82rem; color: color-mix(in srgb, var(--cream) 60%, transparent); }
.footer-bottom .placeholder-tag { color: var(--mustard-soft); }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---- Reveal animations (respect reduced motion) ------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

.hero-copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) backwards; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .15s; }
.hero-copy > *:nth-child(3) { animation-delay: .25s; }
.hero-copy > *:nth-child(4) { animation-delay: .35s; }
.hero-copy > *:nth-child(5) { animation-delay: .45s; }
.hero-figure { animation: rise .8s cubic-bezier(.2,.7,.2,1) .2s backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
