/* Restaurang Dragon Chopsticks – blått-och-vitt porslin, logotypens vermiljon för ringknapparna. */
@font-face {
  font-family: "Young Serif";
  src: url("/assets/young-serif.6ba68b9927.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/hanken-grotesk.e9201eddf1.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --porcelain: #f4f6fa;
  --white: #ffffff;
  --cobalt: #213d8f;
  --cobalt-soft: #dfe5f3;
  --ink: #141d3a;
  --ink-2: #44506f;
  --lacquer: #13204a;
  --vermilion: #b9341a;
  --vermilion-dk: #962812;
  --gold: #e3a640;
  --line: #c9d1e5;

  --serif: "Young Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s-xs: 0.8125rem;  /* 13 */
  --s-sm: 0.9375rem;  /* 15 */
  --s-md: 1.0625rem;  /* 17 */
  --s-lg: 1.3125rem;  /* 21 */
  --s-xl: 1.625rem;   /* 26 */
  --s-2xl: 2.0625rem; /* 33 */
  --s-3xl: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 4rem;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 0.75rem); scroll-padding-bottom: 5.5rem; }
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--s-md);
  line-height: 1.55;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 4.75rem; /* plats för ringraden på mobil */
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 2px; }
.visit :focus-visible { outline-color: var(--gold); }
a, button, input { -webkit-tap-highlight-color: rgba(33, 61, 143, 0.15); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }
.i { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

.skip { position: absolute; left: 0.75rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--white); padding: 0.6rem 1rem; border-radius: var(--radius); }
.skip:focus { top: 0.75rem; }

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 2.75rem; padding: 0.6rem 1.15rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 650 var(--s-md)/1.1 var(--sans); letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap;
  touch-action: manipulation;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-call { background: var(--vermilion); color: var(--white); }
.btn-call:hover { background: var(--vermilion-dk); }
.btn-call-alt { background: var(--white); color: var(--cobalt); border-color: var(--cobalt); }
.btn-call-alt:hover { background: var(--cobalt); color: var(--white); }
.btn-lg { min-height: 3.25rem; padding-inline: 1.4rem; font-size: var(--s-lg); }
.btn-sm { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: var(--s-sm); }

/* ---------- Sidhuvud ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 246, 250, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: var(--s-lg); line-height: 1; margin-right: auto; min-width: 0; }
.brand img { width: 2.6rem; height: 2.6rem; }
.brand span { white-space: nowrap; }
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 0.25rem; list-style: none; }
.main-nav a { display: block; padding: 0.5rem 0.75rem; color: var(--ink); text-decoration: none; font-weight: 550; border-radius: var(--radius); }
.main-nav a:hover { color: var(--cobalt); background: var(--cobalt-soft); }
.header-call { display: none; }
.hide-sm { display: none; }

/* ---------- Meandermönster ---------- */
.hero::after, .menu::before, .site-footer::before {
  content: ""; display: block; height: 24px;
  background: url("/assets/fret.2f7353276e.svg") repeat-x left center / 24px 24px;
}

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-in { display: grid; gap: 2rem; padding-block: 2rem 2.75rem; align-items: center; }
.hero-text { max-width: 36rem; }
.hero h1 { font-size: var(--s-3xl); color: var(--cobalt); letter-spacing: -0.01em; }
.h1-pre { display: block; font-size: 0.42em; color: var(--vermilion); margin-bottom: 0.3em; letter-spacing: 0.01em; }
.hero-sub { font-family: var(--serif); font-size: var(--s-lg); color: var(--ink-2); margin-top: 0.6rem; }
.lede { margin-top: 1.25rem; font-size: var(--s-lg); line-height: 1.5; max-width: 34em; }
.status { display: flex; align-items: baseline; gap: 0.6rem; margin-top: 1.5rem; font-weight: 600; }
.status .dot { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--ink-2); flex: none; transform: translateY(-0.05em); }
.status.is-open .dot { background: #1f8a4c; box-shadow: 0 0 0 4px rgba(31, 138, 76, 0.18); }
.status.is-closed .dot { background: var(--vermilion); }
.status.is-kitchen-closed .dot { background: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.hero-note { margin-top: 0.9rem; color: var(--ink-2); font-size: var(--s-sm); }

.plate {
  position: relative; justify-self: center;
  width: min(62vw, 27.5rem); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(19, 32, 74, 0.45);
  display: grid; place-items: center;
  order: -1;
}
/* porslinsfatets rand: en tät ring av koboltblå streck och två linjer */
.plate::before, .plate::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.plate::before {
  inset: 0;
  background: repeating-conic-gradient(var(--cobalt) 0deg 2.2deg, transparent 2.2deg 6deg);
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 86%, #000 86.5% 92%, transparent 92.5%);
  mask: radial-gradient(circle closest-side, transparent 0 86%, #000 86.5% 92%, transparent 92.5%);
}
.plate::after { inset: 3%; border: 2px solid var(--cobalt); }
.plate picture { width: 74%; position: relative; z-index: 1; }
.plate img { width: 100%; height: auto; }

/* ---------- Om oss ---------- */
.about { padding-block: 3.5rem; background: var(--white); }
.about-in { display: grid; gap: 2.5rem; align-items: center; }
.about-photos { position: relative; padding-bottom: 3rem; }
.ph img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; }
.ph-wide img { aspect-ratio: 900 / 572; }
.ph-tall { position: absolute; right: 0.75rem; bottom: 0; width: 38%; border: 5px solid var(--white); border-radius: calc(var(--radius) + 4px); }
.ph-tall img { aspect-ratio: 2 / 3; }
.about h2 { font-size: var(--s-2xl); color: var(--cobalt); }
.about-text > p { margin-top: 1rem; max-width: 36em; }
.facts { margin: 1.75rem 0 0; display: grid; gap: 1.1rem; }
.facts div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.75rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.facts dt { font-family: var(--serif); color: var(--cobalt); font-size: var(--s-lg); line-height: 1.2; }
.facts dd { margin: 0; }

/* ---------- Meny ---------- */
.menu { padding-bottom: 4rem; }
.menu::before { margin-bottom: 3rem; }
.menu-head { display: grid; gap: 1rem; margin-bottom: 2rem; }
.menu-head h2 { font-size: var(--s-3xl); color: var(--cobalt); }
.menu-notes { display: grid; gap: 0.5rem; max-width: 40em; color: var(--ink-2); }
.menu-notes p:first-child { color: var(--ink); font-weight: 600; }

.menu-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.menu-side {
  position: sticky; top: var(--header-h); z-index: 5;
  background: var(--porcelain);
  margin-inline: calc(var(--gutter) * -1);
  padding: 0.6rem var(--gutter);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.menu-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.search-field { position: relative; }
.search-field .i { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--ink-2); }
.menu-search input {
  width: 100%; min-height: 2.75rem; padding: 0.55rem 0.9rem 0.55rem 2.6rem;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--white);
  font: 500 1rem/1.2 var(--sans); color: var(--ink);
}
.menu-search input:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 1px; border-color: var(--cobalt); }
.menu-search input::placeholder { color: #6a7390; }
.menu-search + .menu-nav { margin-top: 0.6rem; }
.menu-nav ul { display: flex; gap: 0.4rem; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 2px; }
.menu-nav ul::-webkit-scrollbar { display: none; }
.menu-nav a {
  display: block; white-space: nowrap; padding: 0.45rem 0.85rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
  text-decoration: none; font-weight: 550; font-size: var(--s-sm);
}
.menu-nav a:hover { border-color: var(--cobalt); color: var(--cobalt); }
.menu-nav a[aria-current="true"] { background: var(--cobalt); border-color: var(--cobalt); color: var(--white); }

.menu-list { min-width: 0; }
.menu-empty { padding: 1.25rem; background: var(--white); border: 1.5px dashed var(--line); border-radius: var(--radius); }
.menu-empty button { font: inherit; color: var(--cobalt); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.menu-sec { padding-top: 1.75rem; scroll-margin-top: calc(var(--header-h) + 8.5rem); }
.menu-sec + .menu-sec { margin-top: 1rem; }
.menu-sec-title { font-size: var(--s-xl); color: var(--cobalt); display: flex; align-items: baseline; gap: 0.75rem; }
.menu-sec-title::after { content: ""; flex: 1; height: 1px; background: var(--line); transform: translateY(-0.3em); }
.menu-sec-note { margin-top: 0.5rem; color: var(--vermilion-dk); font-weight: 600; font-size: var(--s-sm); }
.menu-group { margin-top: 1.25rem; }
.menu-group-title { font-weight: 700; font-size: var(--s-sm); color: var(--ink-2); padding-bottom: 0.25rem; }
.dishes { list-style: none; }
.dish {
  display: grid; grid-template-columns: 2.9rem 1fr auto; gap: 0 0.85rem; align-items: baseline;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line);
}
.dish[hidden] { display: none; }
.dish-no { font-family: var(--serif); color: var(--cobalt); font-size: var(--s-xl); line-height: 1; text-align: left; font-variant-numeric: lining-nums; }
.dish-name { font-family: var(--sans); font-weight: 650; font-size: var(--s-md); line-height: 1.3; }
.dish-desc { color: var(--ink-2); font-size: var(--s-sm); margin-top: 0.2rem; max-width: 40em; }
.dish-tags { margin-top: 0.35rem; }
.tag { display: inline-block; font-size: var(--s-xs); font-weight: 600; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--cobalt-soft); color: var(--cobalt); }
.tag-veg { background: #e2f0e6; color: #1d6b3d; }
.dish-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: var(--s-md); }
.dish-price .kr { font-weight: 500; color: var(--ink-2); font-size: var(--s-sm); }
mark { background: #fbe7bd; color: inherit; border-radius: 2px; padding: 0 1px; }

.extras-price { font-family: var(--sans); font-weight: 700; font-size: var(--s-md); color: var(--ink); order: 2; }
.menu-extras .menu-sec-title::after { order: 1; }
.extras { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.extras li { padding: 0.4rem 0.85rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); font-size: var(--s-sm); font-weight: 550; }
.extras li[hidden] { display: none; }

/* ---------- Besök ---------- */
.visit { background: var(--lacquer); color: #e9edf7; padding-block: 3.5rem; }
.visit a { color: #ffffff; }
.visit-in { display: grid; gap: 2.5rem; }
.visit h2 { font-size: var(--s-2xl); color: var(--white); }
.status-dark { color: var(--white); margin-top: 1rem; }
.status-dark.is-open .dot { background: #4cc27c; box-shadow: 0 0 0 4px rgba(76, 194, 124, 0.25); }
.status-dark.is-closed .dot { background: #ff8a6b; }
.hours { width: 100%; max-width: 30rem; border-collapse: collapse; margin-top: 1.25rem; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 0.6rem 0.5rem 0.6rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.hours thead th { font-size: var(--s-xs); font-weight: 600; color: #b8c2dc; padding-top: 0; }
.hours tbody th { font-weight: 600; }
.hours td.closed { color: #b8c2dc; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--gold); }
.hours tr.is-today th::after { content: " (i dag)"; font-weight: 400; }
.hours-note { margin-top: 1rem; max-width: 30rem; color: #cfd6ea; font-size: var(--s-sm); }
.visit address { font-style: normal; margin-top: 1.25rem; display: grid; gap: 1rem; }
.addr { display: flex; gap: 0.6rem; font-size: var(--s-lg); line-height: 1.35; }
.addr .i { margin-top: 0.15em; color: var(--gold); }
.link-strong { font-weight: 650; }
.contact { list-style: none; display: grid; gap: 0.25rem; }
.contact-link { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; text-decoration: none; overflow-wrap: anywhere; }
.contact-link .i { color: var(--gold); }
.contact-link:hover span { text-decoration: underline; }
.visit-photo { max-width: 22rem; }
.visit-photo img { aspect-ratio: 3 / 4; object-position: center 60%; }

/* ---------- Sidfot ---------- */
.site-footer { background: var(--porcelain); }
.footer-in { display: grid; gap: 1rem; padding-block: 2rem 2.5rem; align-items: center; grid-template-columns: auto 1fr; font-size: var(--s-sm); color: var(--ink-2); }
.footer-logo { width: 3.5rem; height: 3.5rem; }
.footer-name { font-family: var(--serif); color: var(--ink); font-size: var(--s-lg); }
.copy { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ---------- Ringrad på mobil ---------- */
.callbar {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line);
}
.callbar .btn { padding-inline: 0.5rem; font-size: 1rem; }

/* ---------- 404 ---------- */
.nf-in { padding-block: 4rem 5rem; max-width: 40rem; }
.nf h1 { font-size: var(--s-3xl); color: var(--cobalt); }
.nf p { margin-top: 1rem; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Större skärmar ---------- */
@media (min-width: 30rem) {
  .hide-sm { display: inline; }
}
@media (min-width: 48rem) {
  html { scroll-padding-bottom: 0; }
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .header-call { display: inline-flex; }
  .about-in { grid-template-columns: 1.1fr 1fr; }
  .visit-in { grid-template-columns: 1fr 1fr; }
  .visit-photo { grid-column: 1 / -1; max-width: none; }
  .visit-photo img { aspect-ratio: 16 / 7; object-position: center 55%; }
}
@media (min-width: 60rem) {
  :root { --header-h: 4.5rem; }
  .main-nav { display: block; }
  .hero-in { grid-template-columns: 1.15fr 1fr; padding-block: 3.5rem 4rem; gap: 3rem; }
  .plate { order: 0; width: min(100%, 27.5rem); }
  .about { padding-block: 5rem; }
  .menu-head { grid-template-columns: auto 1fr; align-items: end; gap: 3rem; }
  .menu-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: 3.5rem; align-items: start; }
  .menu-side { top: calc(var(--header-h) + 1.5rem); margin: 0; padding: 0; border: 0; background: none; }
  .menu-search label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: block; font-weight: 600; font-size: var(--s-sm); margin-bottom: 0.35rem; }
  .menu-search + .menu-nav { margin-top: 1.25rem; }
  .menu-nav ul { flex-direction: column; overflow: visible; gap: 0.15rem; }
  .menu-nav a { border: 0; background: none; border-radius: var(--radius); padding: 0.45rem 0.75rem; font-size: var(--s-md); }
  .menu-nav a:hover { background: var(--cobalt-soft); }
  .menu-sec { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
  .menu-sec:first-of-type, .menu-empty + .menu-sec { padding-top: 0; }
  .dish { grid-template-columns: 3.75rem 1fr auto; padding: 1rem 0; }
  .dish-no { font-size: var(--s-2xl); }
  .visit { padding-block: 5rem; }
  .visit-in { grid-template-columns: 1.1fr 1fr 0.8fr; gap: 3.5rem; }
  .visit-photo { grid-column: auto; }
}
@media (min-width: 75rem) {
  .dishes { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.75rem; }
  .dish { align-content: start; }
  .visit-photo img { aspect-ratio: 3 / 4; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .callbar, .menu-side, .about-photos, .visit-photo { display: none !important; }
  body { padding: 0; background: #fff; }
}
