/* Tasca Andorinha – concept site
   Light, azulejo blue, classic serif, centred and symmetrical. */

@font-face {
  font-family: "Libre Caslon Display";
  src: url("../fonts/libre-caslon-display-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("../fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("../fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("../fonts/libre-caslon-text-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --glaze: #FBFAF6;
  --blue: #1D4E9E;
  --blue-deep: #143872;
  --yellow: #E8B923;
  --wine: #7A1F2B;
  --ink: #1B2233;
  --muted: #555C6E;
  --line: #D9DEE8;
  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --text: "Libre Caslon Text", Georgia, serif;
  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Crect width='48' height='48' fill='%23FBFAF6'/%3E%3Cg fill='%231D4E9E'%3E%3Ccircle r='15'/%3E%3Ccircle cx='48' r='15'/%3E%3Ccircle cy='48' r='15'/%3E%3Ccircle cx='48' cy='48' r='15'/%3E%3Cpath d='M24 5l6 19-6 19-6-19z'/%3E%3Cpath d='M5 24l19-6 19 6-19 6z'/%3E%3C/g%3E%3Cg fill='%23FBFAF6'%3E%3Ccircle r='8'/%3E%3Ccircle cx='48' r='8'/%3E%3Ccircle cy='48' r='8'/%3E%3Ccircle cx='48' cy='48' r='8'/%3E%3C/g%3E%3Ccircle cx='24' cy='24' r='4.5' fill='%23E8B923'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--glaze);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
}
img, video { display: block; max-width: 100%; height: auto; }
main { overflow-x: clip; }
h1, h2, h3, p, ul, figure, table, address { margin: 0; padding: 0; }
ul { list-style: none; }
address { font-style: normal; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 3rem; background: var(--glaze); padding: .5rem 1rem; z-index: 10; }

/* Concept bar */
.concept-bar {
  background: var(--ink); color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .8125rem; line-height: 1.4; text-align: center;
  padding: .5rem 1rem;
}
.concept-bar a { color: #fff; }

/* Top */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 70rem; margin: 0 auto; padding: .875rem 1.25rem;
}
.top-nav { display: none; gap: 1.75rem; }
.top-nav a { text-decoration: none; font-size: 1rem; }
.top-nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.top-tools { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.lang { display: flex; border: 1px solid var(--blue); border-radius: 999px; overflow: hidden; }
.lang button {
  font: inherit; font-size: .875rem; line-height: 1; color: var(--blue);
  background: none; border: 0; padding: .625rem .875rem; min-height: 2.75rem; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--blue); color: #fff; }

.btn {
  display: inline-block; background: var(--blue); color: #fff; text-decoration: none;
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.2;
  padding: .9375rem 1.75rem; border-radius: 999px; border: 1px solid var(--blue);
  transition: background-color .15s ease;
}
.btn:hover { background: var(--blue-deep); }
.btn-small { font-size: .9375rem; padding: .75rem 1.25rem; }
.link { color: var(--blue); text-underline-offset: .3em; }
.hero-actions .link { display: inline-block; padding: .75rem 0; }
.link:hover { color: var(--blue-deep); }

/* Tile bands */
.tiles { height: 48px; background: var(--tile) center top / 48px 48px repeat-x; }
.tiles-thin { height: 24px; background-size: 24px 24px; }

/* Hero */
.hero { text-align: center; }
.hero-text { max-width: 44rem; margin: 0 auto; padding: 3rem 1.25rem 2.5rem; }
.since { font-style: italic; color: var(--wine); font-size: 1.125rem; }
h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3rem, 12vw, 6.5rem); line-height: 1; letter-spacing: -.01em;
  color: var(--blue); margin: .5rem 0 1.25rem;
}
.lede { font-size: 1.25rem; line-height: 1.55; max-width: 32rem; margin: 0 auto; }
.status { margin-top: 1.5rem; font-size: 1rem; color: var(--muted); min-height: 1.7em; }
.status::before {
  content: ""; display: inline-block; width: .625rem; height: .625rem; border-radius: 50%;
  margin-right: .5rem; background: currentColor;
}
.status.is-open { color: #1F6B3A; }
.status.is-closed { color: var(--wine); }
.hero-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; justify-content: center; align-items: center; }

.hero-photos {
  display: flex; justify-content: center; align-items: flex-end; gap: 1.5rem;
  padding: 0 1.25rem; max-width: 70rem; margin: 0 auto;
}
.arch { border-radius: 999px 999px 0 0; object-fit: cover; overflow: hidden; }
div.arch { position: relative; background: var(--blue-deep); }
div.arch img, div.arch video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-toggle { margin-top: 1rem; }
.video-toggle button {
  font: inherit; font-size: .875rem; color: var(--muted); background: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; min-height: 2.5rem;
}
.video-toggle button:hover { color: var(--blue); border-color: var(--blue); }
.video-toggle button[hidden] { display: none; }
.story-photo { overflow: hidden; border-radius: 4px; border: 8px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.arch-main { width: min(80vw, 26rem); aspect-ratio: 3 / 4; }
.arch-side { display: none; width: 15rem; aspect-ratio: 3 / 4; }

/* Story */
.story {
  max-width: 62rem; margin: 0 auto; padding: 4.5rem 1.25rem;
  display: grid; gap: 2.5rem; align-items: center;
}
h2 {
  font-family: var(--display); font-weight: 400; color: var(--blue);
  font-size: clamp(2.25rem, 6vw, 3.25rem); line-height: 1.1; margin-bottom: 1.25rem;
}
.story-text p + p { margin-top: 1rem; }
.story-text { max-width: 34rem; }
.story-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Menu */
.menu { background: #fff; text-align: center; padding-bottom: 4.5rem; }
.menu h2 { margin-top: 3.5rem; }
.menu-note { color: var(--muted); font-style: italic; max-width: 34rem; margin: 0 auto 2rem; padding: 0 1.25rem; }
.tabs {
  display: flex; gap: .5rem; overflow-x: auto; padding: .25rem 1.25rem 1rem;
  scrollbar-width: none; justify-content: flex-start;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  flex: none; font: inherit; font-size: 1rem; color: var(--blue); background: none;
  border: 1px solid var(--blue); border-radius: 999px; padding: .625rem 1.125rem;
  min-height: 2.75rem; cursor: pointer;
}
.tabs [role="tab"][aria-selected="true"] { background: var(--blue); color: #fff; }
.panel { max-width: 40rem; margin: 1rem auto 0; padding: 0 1.25rem; text-align: left; }
.dishes li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.dishes h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.dishes p { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--wine); font-weight: 700; }

/* Photo row */
.plates { display: grid; grid-template-columns: 1fr; }
.plates img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Visit */
.visit {
  max-width: 70rem; margin: 0 auto; padding: 4.5rem 1.25rem;
  display: grid; gap: 3rem;
}
.visit h2 { font-size: 2.25rem; }
.visit-block p + p { margin-top: .75rem; }
.status-inline { margin: 0 0 1rem; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; font-weight: 400; padding: .5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours td { text-align: right; }
.hours .is-today th, .hours .is-today td { font-weight: 700; color: var(--blue); }
address { margin-bottom: .75rem; }
.takeaway-title { font-size: 1.125rem; margin: 2rem 0 .75rem; }
.takeaway { display: flex; flex-wrap: wrap; gap: .5rem; }
.takeaway a {
  display: inline-block; text-decoration: none; color: var(--blue);
  border: 1px solid var(--blue); border-radius: 999px; padding: .625rem 1.125rem;
}
.takeaway a:hover { background: var(--blue); color: #fff; }

/* Footer */
.foot { text-align: center; background: var(--blue); color: #fff; padding-bottom: 3rem; }
.foot-name { font-family: var(--display); font-size: 2.25rem; line-height: 1.1; margin: 2.5rem 0 .5rem; }
.foot a { color: #fff; }

@media (min-width: 640px) {
  .plates { grid-template-columns: repeat(3, 1fr); }
  .tabs { justify-content: center; }
}
@media (min-width: 900px) {
  .top { padding: 1.25rem 2rem; }
  .top-nav { display: flex; }
  .top-tools { width: auto; }
  .hero-text { padding-top: 4rem; }
  .arch-side { display: block; }
  .story { grid-template-columns: 1fr 1fr; gap: 4rem; padding: 7rem 2rem; }
  .visit { grid-template-columns: 1.1fr 1fr 1fr; gap: 4rem; padding: 6rem 2rem; }
}

/* Concept bar with the button back to Webcrops. Stays at the top of the screen while scrolling. */
html { scroll-padding-top: 3.5rem; }
.concept-bar {
  --bar-bg: var(--ink); --bar-fg: #fff;
  position: sticky; top: 0; z-index: 50; margin: 0;
  display: flex; align-items: center; justify-content: center; gap: .375rem 1rem;
  background: var(--bar-bg); color: var(--bar-fg); text-align: left; padding: .4375rem 1rem;
}
.concept-bar a { color: inherit; }
.concept-back {
  flex: none; display: inline-flex; align-items: center; gap: .375rem;
  font-weight: 700; font-size: .8125rem; line-height: 1; text-decoration: none; white-space: nowrap;
  border: 1.5px solid var(--bar-fg); border-radius: 999px; padding: .5rem .875rem; min-height: 2rem;
  transition: background-color .15s ease, color .15s ease;
}
.concept-back:hover { background: var(--bar-fg); color: var(--bar-bg) !important; }
.concept-bar :focus-visible { outline: 2px solid var(--bar-fg); outline-offset: 2px; }
@media (max-width: 479px) {
  .concept-bar { justify-content: flex-start; font-size: .75rem; }
}

:root { --pad: 1.25rem; }
@media (min-width: 900px) { :root { --pad: 2rem; } }

/* Smart sticky header (assets/js/nav.js): slides away on the way down, comes back on the way up.
   It sits just under the concept bar, and gets a background while it is stuck. */
.top[data-smart-nav] {
  position: sticky; top: var(--bar-h, 2.875rem); z-index: 45; max-width: none; margin: 0; padding-inline: max(var(--pad), calc((100% - 70rem) / 2 + var(--pad)));
  transition: transform .28s ease, background-color .28s ease, box-shadow .28s ease;
}
.top.is-hidden { transform: translateY(-101%); }
.top.is-stuck { background: rgba(251, 250, 246, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
