/* =========================================================
   קפה שרגא — Nostalgic Bistro (Option 1)
   A newspaper-meets-bistro aesthetic: warm cream paper,
   burgundy & olive accents, serif headlines, handwritten
   menu labels, ornamental rules.
   ========================================================= */

/* -----------------------------
   1. TOKENS (CSS variables)
   ----------------------------- */
:root {
    /* Palette — aged paper, burgundy, olive, antique gold */
    --bg:            #F4ECDE;
    --bg-deeper:     #EBE0CB;
    --ink:           #3A2618;
    --ink-soft:      #5C4433;
    --ink-muted:     #8B7559;
    --burgundy:      #8B2E1E;
    --burgundy-deep: #6A1F15;
    --olive:         #6B7A3A;
    --gold:          #B8893A;
    --gold-soft:     #D9B871;
    --rule:          #CFBF9E;

    /* Typography */
    --serif:  'Frank Ruhl Libre', 'David Libre', Georgia, serif;
    --sans:   'Assistant', system-ui, -apple-system, sans-serif;
    --script: 'Caveat', 'Segoe Script', cursive;

    /* Rhythm */
    --radius-sm: 4px;
    --radius:    10px;
    --shadow-plate: 0 30px 60px -30px rgba(58, 38, 24, .45);
    --shadow-card:  0 8px 22px -12px rgba(58, 38, 24, .30);

    --gutter: clamp(1.1rem, 4vw, 2.6rem);
    --max:    1200px;
}

/* -----------------------------
   2. BASE
   ----------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    background-image:
        radial-gradient(1200px 600px at 10% -5%, rgba(184, 137, 58, .08), transparent 60%),
        radial-gradient(900px 500px at 110% 120%, rgba(139, 46, 30, .06), transparent 60%);
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--burgundy); text-decoration: none; }
a:hover { color: var(--burgundy-deep); }

/* Subtle paper grain overlay */
.paper-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: multiply;
    opacity: .18;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.22  0 0 0 0 0.15  0 0 0 0 0.08  0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* -----------------------------
   3. LAYOUT HELPERS
   ----------------------------- */
section { position: relative; z-index: 2; }

.section-head {
    max-width: var(--max);
    margin: clamp(3rem, 8vw, 6rem) auto 2.5rem;
    padding: 0 var(--gutter);
    text-align: center;
}
.section-head__no {
    display: inline-block;
    font-family: var(--serif);
    font-style: italic;
    color: var(--gold);
    letter-spacing: .15em;
    font-size: .95rem;
    margin-bottom: .5rem;
}
.section-head__title {
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--ink);
    margin: 0 0 .6rem;
    letter-spacing: -.01em;
}
.section-head__flourish {
    color: var(--gold);
    letter-spacing: .8rem;
    font-size: .85rem;
}

/* -----------------------------
   4. TOP RIBBON + MASTHEAD
   ----------------------------- */
.ribbon {
    position: relative;
    z-index: 3;
    background: var(--ink);
    color: var(--bg);
    font-size: .82rem;
    letter-spacing: .05em;
}
.ribbon__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: .55rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .7rem;
}
.ribbon__item { opacity: .85; }
.ribbon__dot  { color: var(--gold); }
.ribbon__phone {
    color: var(--gold-soft);
    font-weight: 600;
    letter-spacing: .03em;
}
.ribbon__phone:hover { color: #fff; }

.masthead {
    position: relative;
    z-index: 2;
    max-width: var(--max);
    margin: 0 auto;
    padding: 2.4rem var(--gutter) 1.2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}
.masthead__edition {
    font-family: var(--serif);
    font-style: italic;
    color: var(--ink-muted);
    font-size: .95rem;
    letter-spacing: .08em;
}
.masthead__edition--left { text-align: left; }
.masthead__wrap { text-align: center; }
.masthead__rule {
    height: 2px;
    background: linear-gradient(to right,
        transparent 0%, var(--ink) 10%, var(--ink) 90%, transparent 100%);
    margin: .2rem 0;
}
.masthead__title {
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(2.4rem, 7vw, 4.4rem);
    color: var(--ink);
    margin: .3rem 0;
    letter-spacing: -.02em;
    line-height: 1;
}
.masthead__sub {
    font-family: var(--serif);
    font-style: italic;
    color: var(--ink-soft);
    margin: 0 0 .3rem;
    font-size: 1.05rem;
}

@media (max-width: 720px) {
    .masthead { grid-template-columns: 1fr; }
    .masthead__edition,
    .masthead__edition--left { text-align: center; font-size: .82rem; }
}

/* -----------------------------
   5. HERO
   ----------------------------- */
.hero {
    position: relative;
    max-width: var(--max);
    margin: 1rem auto 0;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: 1.15fr .9fr;
    gap: clamp(1rem, 3vw, 2.5rem);
    align-items: stretch;
}
.hero__frame {
    position: relative;
    border: 1px solid var(--rule);
    padding: 10px;
    background: #fff;
    box-shadow: var(--shadow-plate);
    aspect-ratio: 4 / 5;
    overflow: hidden;
}
.hero__frame::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(58, 38, 24, .2);
    pointer-events: none;
    z-index: 2;
}
.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(.28) saturate(.95) contrast(1.02);
    transition: transform 1.2s ease;
}
.hero__frame:hover .hero__img { transform: scale(1.04); }
.hero__tint {
    position: absolute;
    inset: 10px;
    background: linear-gradient(180deg,
        rgba(58, 38, 24, 0) 55%,
        rgba(58, 38, 24, .35) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero__plate {
    align-self: center;
    padding: 1rem 0;
}
.hero__eyebrow {
    font-family: var(--serif);
    font-style: italic;
    color: var(--burgundy);
    margin: 0 0 .8rem;
    letter-spacing: .05em;
    font-size: 1.05rem;
}
.hero__headline {
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.02;
    margin: 0 0 1.4rem;
    color: var(--ink);
    letter-spacing: -.015em;
}
.hero__headline span { display: block; }
.hero__headline--emph {
    color: var(--burgundy);
    font-style: italic;
    font-weight: 700;
}
.hero__lede {
    font-size: 1.12rem;
    color: var(--ink-soft);
    max-width: 44ch;
    margin: 0 0 2rem;
}
.hero__cta {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
}

@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; }
    .hero__frame { aspect-ratio: 4 / 3; }
}

/* -----------------------------
   6. BUTTONS
   ----------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .9rem 1.6rem;
    font-family: var(--sans);
    font-weight: 600;
    font-size: .98rem;
    letter-spacing: .02em;
    border: 1.5px solid currentColor;
    border-radius: 0;
    position: relative;
    cursor: pointer;
    transition: all .25s ease;
    background: transparent;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid currentColor;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.btn:hover::before { opacity: .5; }

.btn--primary {
    background: var(--burgundy);
    color: var(--bg);
    border-color: var(--burgundy);
}
.btn--primary:hover {
    background: var(--burgundy-deep);
    color: #fff;
    transform: translateY(-2px);
}
.btn--ghost {
    color: var(--ink);
    background: transparent;
}
.btn--ghost:hover {
    background: var(--ink);
    color: var(--bg);
}
.btn--full { display: flex; width: 100%; margin-top: 1rem; }

/* -----------------------------
   7. ABOUT (newspaper article)
   ----------------------------- */
.about {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.article { padding: 1rem 0 2rem; }
.article__lead {
    font-family: var(--serif);
    font-size: clamp(1.15rem, 1.6vw, 1.4rem);
    line-height: 1.7;
    margin: 0 0 1.6rem;
    color: var(--ink);
}
.dropcap {
    font-family: var(--serif);
    font-weight: 900;
    font-size: 4.4rem;
    line-height: .82;
    float: right;
    margin-inline-start: .4rem;
    margin-inline-end: .6rem;
    color: var(--burgundy);
    padding-top: 6px;
}
.article__body {
    font-size: 1.05rem;
    color: var(--ink-soft);
    margin: 0 0 1.2rem;
}
.article__pull {
    position: relative;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    color: var(--ink);
    line-height: 1.5;
    padding: 1.5rem 2.2rem 1.5rem;
    margin: 2rem 0;
    border-top:    1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    text-align: center;
}
.article__pull cite {
    display: block;
    font-style: normal;
    font-size: .9rem;
    color: var(--gold);
    margin-top: .8rem;
    letter-spacing: .05em;
    font-family: var(--sans);
}
.pull-mark {
    position: absolute;
    top: -18px;
    right: 50%;
    transform: translateX(50%);
    background: var(--bg);
    padding: 0 .6rem;
    font-size: 2.8rem;
    font-family: var(--serif);
    color: var(--gold);
    line-height: 1;
}

/* -----------------------------
   8. MENU (chalkboard-style cards)
   ----------------------------- */
.menu {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.menu__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.2rem, 2.5vw, 2rem);
}
.menu-card {
    background: #FBF5E7;
    border: 1px solid var(--rule);
    padding: 2rem 1.8rem;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: transform .3s ease, box-shadow .3s ease;
}
.menu-card::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px dashed rgba(139, 46, 30, .25);
    pointer-events: none;
}
.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px -12px rgba(58, 38, 24, .35);
}
.menu-card__title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--burgundy);
    margin: 0 0 .2rem;
    text-align: center;
}
.menu-card__sub {
    font-family: var(--script);
    color: var(--olive);
    font-size: 1.25rem;
    text-align: center;
    margin: 0 0 1.4rem;
}
.menu-card__list { list-style: none; padding: 0; margin: 0; }
.menu-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .6rem 1rem;
    padding: .9rem 0;
    border-bottom: 1px dotted var(--rule);
    align-items: baseline;
}
.menu-item:last-child { border-bottom: 0; }
.menu-item__name {
    font-family: var(--serif);
    font-weight: 500;
    color: var(--ink);
    font-size: 1.12rem;
}
.menu-item__price {
    font-family: var(--script);
    color: var(--burgundy);
    font-size: 1.4rem;
    font-weight: 700;
    white-space: nowrap;
}
.menu-item__desc {
    grid-column: 1 / -1;
    color: var(--ink-muted);
    font-size: .95rem;
    margin: 0;
    line-height: 1.5;
}
.menu__note {
    text-align: center;
    margin-top: 2rem;
    font-family: var(--serif);
    font-style: italic;
    color: var(--ink-soft);
}

@media (max-width: 780px) {
    .menu__grid { grid-template-columns: 1fr; }
}

/* -----------------------------
   9. GALLERY (polaroid scatter)
   ----------------------------- */
.gallery {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}
.polaroid {
    background: #fff;
    padding: 10px 10px 52px;
    box-shadow: var(--shadow-card);
    transition: transform .4s ease, box-shadow .4s ease;
    margin: 0;
    position: relative;
}
.polaroid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(.18) saturate(.9);
    aspect-ratio: 1 / 1;
}
.polaroid figcaption {
    position: absolute;
    bottom: 10px;
    left: 0; right: 0;
    text-align: center;
    font-family: var(--script);
    color: var(--ink);
    font-size: 1.15rem;
}
.polaroid--a { grid-column: span 4; transform: rotate(-2.2deg); }
.polaroid--b { grid-column: span 5; transform: rotate(1.4deg); margin-top: 1.5rem; }
.polaroid--c { grid-column: span 3; transform: rotate(-1deg); margin-top: .8rem; }
.polaroid--d { grid-column: span 5; transform: rotate(1.8deg); }
.polaroid--e { grid-column: span 7; transform: rotate(-1.4deg); margin-top: -.5rem; }

.polaroid:hover {
    transform: rotate(0) translateY(-6px) scale(1.02);
    box-shadow: 0 20px 30px -12px rgba(58, 38, 24, .4);
    z-index: 5;
}

@media (max-width: 780px) {
    .polaroid--a, .polaroid--b, .polaroid--c,
    .polaroid--d, .polaroid--e { grid-column: span 12; }
}

/* -----------------------------
   10. REVIEWS
   ----------------------------- */
.reviews {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.review {
    background: #FBF5E7;
    border: 1px solid var(--rule);
    padding: 2.2rem 1.8rem 1.6rem;
    position: relative;
    box-shadow: var(--shadow-card);
}
.review::before {
    content: '\201C';
    position: absolute;
    top: -18px;
    right: 16px;
    font-family: var(--serif);
    font-size: 5rem;
    line-height: 1;
    color: var(--gold);
    background: var(--bg);
    padding: 0 .3rem;
}
.review__text {
    font-family: var(--serif);
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--ink);
    margin: 0 0 1.2rem;
}
.review__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dotted var(--rule);
    padding-top: .9rem;
    font-size: .88rem;
    color: var(--ink-muted);
}
.review__author { font-weight: 600; color: var(--burgundy); }
.review__stars { color: var(--gold); letter-spacing: .1em; }
.reviews__source {
    text-align: center;
    font-family: var(--serif);
    font-style: italic;
    color: var(--ink-muted);
    margin-top: 1.5rem;
    font-size: .9rem;
}

/* -----------------------------
   11. CONTACT / HOURS / MAP
   ----------------------------- */
.contact {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter) 4rem;
}
.contact__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}
.contact__card {
    background: #FBF5E7;
    border: 1px solid var(--rule);
    padding: 2rem;
    box-shadow: var(--shadow-card);
}
.contact__heading {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--burgundy);
    margin: 0 0 1.2rem;
    padding-bottom: .6rem;
    border-bottom: 1px dashed var(--rule);
}

/* Hours */
.hours__list { list-style: none; margin: 0; padding: 0; }
.hours__list li {
    display: flex;
    justify-content: space-between;
    padding: .5rem 0;
    border-bottom: 1px dotted var(--rule);
    font-family: var(--serif);
}
.hours__list li:last-child { border-bottom: 0; }
.hours__list .day { color: var(--ink); font-weight: 500; }
.hours__list .time { color: var(--ink-soft); }
.hours__list .time--closed {
    color: var(--burgundy);
    font-style: italic;
}
.hours__list li.is-today {
    background: rgba(184, 137, 58, .12);
    margin: 0 -.6rem;
    padding-inline: .6rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
}
.hours__footnote {
    margin: 1rem 0 0;
    font-size: .88rem;
    color: var(--ink-muted);
    font-family: var(--serif);
    font-style: italic;
}

/* Details list */
.details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .6rem 1rem;
    margin: 0 0 .5rem;
    font-family: var(--serif);
}
.details dt {
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .05em;
    font-size: .85rem;
    padding-top: .15rem;
}
.details dd { margin: 0; color: var(--ink); font-size: 1.05rem; }
.details__link { color: var(--burgundy); }
.details__link:hover { text-decoration: underline; }

/* Map */
.contact__card--map {
    padding: 0;
    overflow: hidden;
    min-height: 340px;
}
.contact__card--map iframe {
    width: 100%;
    height: 100%;
    min-height: 340px;
    border: 0;
    display: block;
    filter: sepia(.1) saturate(.9);
}

@media (max-width: 960px) {
    .contact__grid { grid-template-columns: 1fr; }
}

/* -----------------------------
   12. FOOTER
   ----------------------------- */
.footer {
    background: var(--ink);
    color: var(--bg);
    padding: 2.4rem var(--gutter);
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}
.footer__rule {
    height: 3px;
    background: linear-gradient(to right,
        transparent, var(--gold) 20%, var(--gold) 80%, transparent);
    max-width: var(--max);
    margin: 0 auto 1.5rem;
}
.footer__inner {
    max-width: var(--max);
    margin: 0 auto;
    text-align: center;
}
.footer__brand {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 0 .4rem;
    letter-spacing: .02em;
}
.footer__copy {
    font-family: var(--serif);
    font-style: italic;
    color: var(--gold-soft);
    margin: 0;
    font-size: .9rem;
    opacity: .85;
}

/* -----------------------------
   13. ACCESSIBILITY / MOTION
   ----------------------------- */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    .polaroid { transform: none !important; }
}

:focus-visible {
    outline: 2px solid var(--burgundy);
    outline-offset: 3px;
}
