/*
Theme Name: Phở Quỳnh
Description: Restaurant website with menu and About Us.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: pho-quynh
*/
:root {
  color-scheme: light;
  --cream: #f8f1e4;
  --paper: #fffaf0;
  --ink: #282219;
  --muted: #695c4c;
  --orange: #a33e25;
  --green: #273a2d;
  --line: #d9cdb8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.6 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, button:focus-visible { outline: 3px solid #c56b40; outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: -6rem; z-index: 2; background: var(--paper); padding: .8rem 1rem; }
.skip:focus { top: 1rem; }
.wrap { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
header, footer { display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; padding-block: 1.15rem; }
header { border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; font: bold 1.8rem/1.1 Georgia, serif; white-space: nowrap; }
.brand small { display: block; margin-top: .45rem; font: 700 .58rem/1 system-ui, sans-serif; letter-spacing: .18em; }
nav, .actions { display: flex; gap: clamp(.7rem, 2.5vw, 2rem); align-items: center; flex-wrap: wrap; }
nav > a { font-weight: 650; }
.button { display: inline-flex; align-items: center; min-height: 44px; padding: .68rem 1.15rem; border: 1px solid currentColor; border-radius: .25rem; text-decoration: none; font-weight: 700; line-height: 1.3; }
.button:hover { text-decoration: underline; }
.primary { background: var(--orange); border-color: var(--orange); color: #fffaf0; }
.hero { width: min(1400px, 100%); margin-inline: auto; display: grid; grid-template-columns: 46fr 54fr; background: var(--cream); }
.intro { align-self: center; padding: clamp(2.3rem, 7vw, 7rem) clamp(1.5rem, 5vw, 5rem); }
h1, h2, h3 { font-family: Georgia, serif; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(3.4rem, 7.8vw, 8rem); letter-spacing: -.06em; }
h2 { font-size: clamp(2.35rem, 5vw, 4.45rem); letter-spacing: -.04em; }
h3 { font-size: 1.35rem; }
.eyebrow { margin: 0 0 1rem; color: var(--orange); font-size: .75rem; font-weight: 800; letter-spacing: .18em; }
.lead { max-width: 25rem; color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.5rem); margin: 1.3rem 0 1.9rem; }
figure { position: relative; background: #493020; margin: 0; min-height: 480px; }
figure img { display: block; position: absolute; width: 100%; height: 100%; object-fit: cover; }
figcaption { position: absolute; bottom: 1rem; right: 1rem; padding: .22rem .55rem; background: #282219e8; color: white; border-radius: .2rem; font-size: .73rem; }
.menu { padding-block: clamp(3rem, 7vw, 6rem); }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.65rem 0; }
.filters button { min-height: 44px; padding: .55rem .95rem; background: transparent; color: inherit; border: 1px solid var(--muted); border-radius: 2rem; font: inherit; font-weight: 650; cursor: pointer; }
.filters button:hover { background: #ede2cf; }
.filters button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--paper); }
.dishes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.25rem; }
article { padding: 1.15rem 0; border-top: 1px solid var(--line); }
article p, .menu-note { margin: .4rem 0 0; color: var(--muted); }
.menu-note { padding-top: 1.35rem; }
.visit { background: var(--green); color: var(--paper); }
.visit .eyebrow { color: #f6b896; }
.visit-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 2rem; padding-block: clamp(3rem, 7vw, 6rem); }
address, .visit p:not(.eyebrow) { font-style: normal; margin: .7rem 0 1rem; }
footer p { color: var(--muted); }
@media (max-width: 760px) {
  .hero, .visit-grid { grid-template-columns: 1fr; }
  figure { min-height: clamp(240px, 68vw, 430px); }
  header, footer { flex-wrap: wrap; }
}
@media (max-width: 490px) {
  .wrap { width: calc(100% - 2rem); }
  .intro { padding-inline: 1rem; }
  .dishes { grid-template-columns: 1fr; }
  nav { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@font-face {
  font-family: 'Noto Serif';
  src: url('fonts/noto-serif-bold.woff') format('woff');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
.brand, h1, h2, h3 { font-family: 'Noto Serif', Georgia, serif; }
nav [aria-current="page"] { color: var(--orange); }
.hero figure img { object-position: 72% center; }
.dish-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: .3rem;
  margin-bottom: .9rem;
}
.dishes .dish-photo { width: min(100%, 13rem); }
.about-hero { position: relative; isolation: isolate; background: #2b1a10; color: var(--paper); }
.about-hero > img, .about-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.about-hero > img { object-fit: cover; object-position: 70% center; }
.about-hero::after { content: ''; background: linear-gradient(90deg, #1c100a 0%, #1c100ae0 35%, #1c100a30 70%); }
.about-hero-copy { padding-block: clamp(3.5rem, 9vw, 9rem); }
.about-hero h1 { max-width: 10ch; font-size: clamp(2.6rem, 6vw, 5.8rem); }
.about-hero .eyebrow { color: #f6b896; }
.about-hero-copy > p:not(.eyebrow) { font-size: 1.2rem; margin: 1.2rem 0 1.55rem; }
.story { padding-block: clamp(3rem, 7vw, 6rem); }
.story-steps, .favorite-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 4vw, 2.6rem); margin-top: 2rem; }
.story-steps h3 { color: var(--orange); }
.story-lead { color: var(--muted); max-width: 65ch; }
.favorites { background: var(--paper); }
.favorite-grid article { border-top: 0; padding-top: 0; }
.favorites .button { margin-top: 1rem; }
@media (max-width: 670px) {
  .about-hero::after { background: linear-gradient(90deg, #1c100af0, #1c100a75); }
  .story-steps, .favorite-grid { grid-template-columns: 1fr; }
  nav { justify-content: flex-start; }
}

.share-links { padding-block: 1.6rem; border-bottom: 1px solid var(--line); }
.share-links h2 { font-size: 1.25rem; letter-spacing: normal; margin-bottom: .8rem; }
.share-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.share-actions button { background: transparent; color: inherit; font-family: inherit; font-size: inherit; cursor: pointer; }
.share-links [role="status"] { margin-bottom: 0; }
.share-links [role="status"]:empty { display: none; }
