/* Restaurant am Gallusplatz — unofficial preview
   Editorial St. Gallen: ivory & charcoal, monumental serif, architectural grid.
   System fonts only; no external resources. */

:root {
  --ivory: #f2ede3;
  --ivory-2: #e8e1d3;
  --paper: #f8f5ef;
  --charcoal: #1f1e1c;
  --charcoal-2: #2c2a27;
  --stone: #77706580;
  --muted: #625c53;
  --brass: #94743f;
  --line: rgba(31, 30, 28, .16);
  --line-light: rgba(242, 237, 227, .2);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", "P052", Georgia, serif;
  --display: "Didot", "Bodoni 72", "Bodoni MT", "Iowan Old Style", "Palatino Linotype", Palatino, "P052", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", "Nimbus Sans", system-ui, sans-serif;

  --gutter: clamp(20px, 4vw, 64px);
  --col-gap: clamp(14px, 2vw, 32px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--serif);
  font-size: clamp(17px, 1.05vw + 12px, 20px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
figure { margin: 0; }

/* ---------- grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

/* ---------- preview bar ---------- */
.preview-bar {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .02em;
  line-height: 1.45;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 9px var(--gutter);
  text-align: center;
}
.preview-bar strong { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; }
.preview-bar__dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); margin-right: 8px; vertical-align: 1px; }
.preview-bar__sep { margin: 0 .4em; opacity: .5; }

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--gutter);
  background: rgba(242, 237, 227, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.masthead__mark { display: flex; align-items: center; gap: 14px; text-decoration: none; min-height: 44px; min-width: 44px; }
.masthead__r {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--charcoal);
  font-family: var(--display); font-size: 22px; line-height: 1;
}
.masthead__name { font-family: var(--sans); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
.masthead__nav { display: flex; gap: clamp(16px, 2.4vw, 40px); font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.masthead__nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 2px; border-bottom: 1px solid transparent; }
.masthead__toggle { display: none; }
.masthead__nav a:hover { border-color: currentColor; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--sans); font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  display: flex; align-items: center; gap: 14px; margin: 0 0 clamp(16px, 2vw, 28px);
}
.eyebrow .rule { width: 56px; height: 1px; background: currentColor; display: inline-block; }
.numeral {
  font-family: var(--display); font-style: italic; color: var(--brass);
  font-size: clamp(22px, 2vw, 30px); margin: 0 0 18px; line-height: 1;
}
.numeral--light { color: #c4a56f; }
.tag {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  background: rgba(31, 30, 28, .78); color: var(--ivory);
  padding: 5px 9px 4px; line-height: 1.2;
}
.tag--light { background: rgba(242, 237, 227, .9); color: var(--charcoal); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  text-decoration: none; border: 1px solid var(--charcoal); cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn--dark { background: var(--charcoal); color: var(--ivory); }
.btn--dark:hover { background: var(--brass); border-color: var(--brass); color: var(--paper); }
.btn--line { background: transparent; color: var(--charcoal); }
.btn--line:hover { background: var(--charcoal); color: var(--ivory); }
.btn--light { background: var(--ivory); color: var(--charcoal); border-color: var(--ivory); }
.btn--light:hover { background: transparent; color: var(--ivory); }
.btn--block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  padding-top: clamp(28px, 5vw, 72px);
  padding-bottom: clamp(48px, 7vw, 110px);
  row-gap: clamp(28px, 4vw, 48px);
  /* architectural column lines */
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc((100% - 2 * var(--gutter)) / 4) 100%;
  background-position: var(--gutter) 0;
  background-repeat: repeat-x;
  background-clip: content-box;
}
.hero__index {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between;
  font-family: var(--sans); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
  border-top: 1px solid var(--charcoal); padding-top: 10px;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero__head { grid-column: 1 / -1; grid-row: 2; position: relative; z-index: 2; }
.hero__title {
  font-family: var(--display);
  font-weight: 400;
  line-height: .84;
  letter-spacing: -.035em;
  margin: 0;
}
.hero__line { display: block; }
.hero__line--a { font-style: italic; font-size: clamp(48px, 6.4vw, 108px); color: var(--brass); padding-left: .08em; margin-bottom: -.06em; }
.hero__line--b { font-size: clamp(58px, 12.6vw, 212px); hyphens: manual; }
.hero__copy { grid-column: 1 / 6; grid-row: 3; align-self: end; }
.hero__lede { max-width: 26ch; font-size: clamp(19px, 1.7vw, 26px); line-height: 1.45; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__figure { grid-column: 7 / -1; grid-row: 3; position: relative; }
.hero__figure img { width: 100%; height: clamp(420px, 64vh, 720px); object-fit: cover; object-position: 40% 55%; }

.hero__facts {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap);
  margin: 0; border-top: 1px solid var(--line); padding-top: 18px;
}
.hero__facts dt, .contact__list dt {
  font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.hero__facts dd a, .contact__list dd a, .reserve__mail a { display: inline-flex; align-items: center; min-height: 44px; }
.hero__facts dd { margin: 0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.45; }

/* ---------- intro ---------- */
.intro {
  padding-top: clamp(72px, 10vw, 160px);
  padding-bottom: clamp(72px, 10vw, 160px);
  border-top: 1px solid var(--line);
  row-gap: 32px;
}
.intro .numeral { grid-column: 1 / 2; }
.intro__title {
  grid-column: 2 / 7;
  font-family: var(--display); font-size: clamp(44px, 6vw, 96px); line-height: .95; letter-spacing: -.02em;
}
.intro__title em { color: var(--brass); }
.intro__body { grid-column: 8 / -1; padding-top: .6em; }
.intro__lead { font-size: clamp(21px, 1.8vw, 28px); line-height: 1.4; margin-bottom: 1.1em; }
.intro__body p:last-child { color: var(--muted); max-width: 46ch; }
.intro__pillars {
  grid-column: 2 / -1;
  list-style: none; margin: clamp(24px, 4vw, 56px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap);
}
.intro__pillars li {
  border-top: 1px solid var(--charcoal); padding-top: 14px;
  font-size: clamp(18px, 1.5vw, 22px); line-height: 1.3;
}
.intro__pillars span { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .22em; color: var(--brass); margin-bottom: 10px; }

/* ---------- am Tisch (mosaic) ---------- */
/* Keep the heading clear of the sticky masthead after #tisch navigation. */
#tisch { scroll-margin-top: 104px; }
@media (max-width: 1024px) { #tisch { scroll-margin-top: 96px; } }
@media (max-width: 680px) { #tisch { scroll-margin-top: 88px; } }
.table {
  padding-bottom: clamp(72px, 10vw, 160px);
  row-gap: var(--col-gap);
  grid-template-rows: auto auto auto;
}
.table figure { position: relative; overflow: hidden; }
.table figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.table figure:hover img { transform: scale(1.03); }
.table__head { grid-column: 1 / 5; grid-row: 1 / 3; align-self: start; position: sticky; top: 110px; padding-right: 12px; }
.table__head h2 { font-family: var(--display); font-size: clamp(44px, 5.4vw, 88px); line-height: .95; letter-spacing: -.02em; margin-bottom: 24px; }
.table__head p:last-child { color: var(--muted); max-width: 32ch; }
.table__a { grid-column: 5 / -1; grid-row: 1; aspect-ratio: 3 / 2; }
.table__b { grid-column: 5 / 9; grid-row: 2 / 4; aspect-ratio: 2 / 3; }
.table__c { grid-column: 9 / -1; grid-row: 2; aspect-ratio: 1 / 1; }
.table__quote {
  grid-column: 9 / -1; grid-row: 3; margin: 0; align-self: end;
  border-top: 1px solid var(--charcoal); padding-top: 18px;
}
.table__quote p { font-family: var(--display); font-style: italic; font-size: clamp(24px, 2.4vw, 38px); line-height: 1.15; margin: 0; }

/* ---------- together ---------- */
.together { position: relative; z-index: 2; background: var(--charcoal); color: var(--ivory); }
.together__figure { position: relative; }
.together__figure img { width: 100%; height: clamp(420px, 78vh, 860px); object-fit: cover; object-position: 50% 45%; opacity: .92; }
.together__card {
  position: absolute; right: var(--gutter); bottom: calc(-1 * clamp(40px, 6vw, 90px));
  width: min(520px, 46vw);
  background: var(--charcoal); color: var(--ivory);
  padding: clamp(28px, 3.4vw, 52px);
}
.together__card h2 { font-family: var(--display); font-size: clamp(38px, 4.2vw, 66px); line-height: 1; letter-spacing: -.02em; margin-bottom: 20px; }
.together__card p:not(.numeral) { color: rgba(242, 237, 227, .78); margin-bottom: 28px; }
.together .tag { left: var(--gutter); bottom: 16px; }

/* ---------- reservation ---------- */
.reserve {
  padding-top: clamp(120px, 14vw, 220px);
  padding-bottom: clamp(72px, 10vw, 160px);
  row-gap: 40px;
}
.reserve__intro { grid-column: 1 / 6; }
.reserve__intro h2 { font-family: var(--display); font-size: clamp(44px, 5.4vw, 88px); line-height: .95; letter-spacing: -.02em; margin-bottom: 28px; }
.reserve__intro p { max-width: 40ch; }
.reserve__mail { margin: -.4em 0 0; font-size: clamp(18px, 1.5vw, 22px); }
.reserve__note {
  margin-top: 28px; padding: 16px 18px; border-left: 2px solid var(--brass);
  background: var(--paper); font-size: 15.5px; line-height: 1.5; color: var(--muted);
}
.reserve__note strong { color: var(--charcoal); font-weight: 600; }
.reserve__form {
  grid-column: 7 / -1;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(24px, 3.4vw, 52px);
  position: relative;
}
.reserve__badge {
  position: absolute; top: 0; right: 0; margin: 0;
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  background: var(--charcoal); color: var(--ivory); padding: 6px 10px;
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; color: var(--charcoal);
  background: transparent; border: 0; border-bottom: 1px solid var(--charcoal);
  padding: 8px 0 10px; border-radius: 0; width: 100%; min-height: 44px;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--charcoal) 50%), linear-gradient(135deg, var(--charcoal) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field textarea { resize: none; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--brass); box-shadow: 0 1px 0 var(--brass); }
.reserve__status { margin: 16px 0 0; font-size: 15.5px; color: var(--brass); min-height: 1.5em; }

/* ---------- contact ---------- */
.contact { background: var(--charcoal); color: var(--ivory); }
.contact__inner { padding-top: clamp(72px, 10vw, 150px); padding-bottom: clamp(56px, 8vw, 110px); row-gap: 32px; }
.contact .numeral { grid-column: 1 / -1; }
.contact__title {
  grid-column: 1 / -1;
  font-family: var(--display); font-size: clamp(52px, 10.5vw, 176px); line-height: .9; letter-spacing: -.035em;
  border-bottom: 1px solid var(--line-light); padding-bottom: clamp(24px, 3vw, 44px);
}
.contact__list {
  grid-column: 1 / -1; margin: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap);
}
.contact__list dt { color: rgba(242, 237, 227, .55); }
.contact__list dd { margin: 0; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.45; overflow-wrap: anywhere; }
.contact__list a { color: var(--ivory); }
.contact__list a:hover { color: #c4a56f; }
.contact__aside { grid-column: 1 / -1; color: rgba(242, 237, 227, .6); font-size: 15.5px; margin: 0; }

/* ---------- footer ---------- */
.footer { background: var(--charcoal-2); color: rgba(242, 237, 227, .7); overflow: hidden; }
.footer__word {
  font-family: var(--display); font-size: clamp(64px, 17vw, 300px); line-height: .8; letter-spacing: -.045em;
  color: rgba(242, 237, 227, .07); margin: 0; padding: 40px var(--gutter) 0; white-space: nowrap;
}
.footer__meta {
  max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 36px;
  display: flex; justify-content: space-between; gap: 32px;
  font-family: var(--sans); font-size: 12.5px; line-height: 1.55; border-top: 1px solid var(--line-light);
}
.footer__meta p { margin: 0; max-width: 60ch; }

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .masthead__name { display: none; }
  .hero__copy { grid-column: 1 / 7; }
  .hero__figure { grid-column: 7 / -1; }
  .hero__figure img { height: clamp(420px, 52vh, 620px); }
  .intro__title { grid-column: 1 / 7; }
  .intro__body { grid-column: 7 / -1; }
  .intro__pillars { grid-column: 1 / -1; }
  .table__head { grid-column: 1 / -1; grid-row: auto; position: static; margin-bottom: 24px; }
  .table__head p:last-child { max-width: 48ch; }
  .table__a { grid-column: 1 / -1; grid-row: auto; }
  .table__b { grid-column: 1 / 7; grid-row: auto / span 2; }
  .table__c { grid-column: 7 / -1; grid-row: auto; }
  .table__quote { grid-column: 7 / -1; grid-row: auto; }
  .reserve__intro { grid-column: 1 / -1; }
  .reserve__form { grid-column: 1 / -1; }
  .contact__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
}

/* ---------- mobile ---------- */
@media (max-width: 680px) {
  .preview-bar { text-align: left; font-size: 12px; }
  .preview-bar__sep { display: none; }
  .preview-bar span:last-child { display: block; margin-top: 2px; }
  .masthead { padding-top: 12px; padding-bottom: 12px; }
  .masthead__toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
    background: transparent; border: 1px solid var(--charcoal); color: var(--charcoal); cursor: pointer;
  }
  .masthead__bars, .masthead__bars::before, .masthead__bars::after {
    display: block; width: 18px; height: 1px; background: currentColor; position: relative; transition: transform .2s ease, background .2s ease;
  }
  .masthead__bars::before, .masthead__bars::after { content: ""; position: absolute; left: 0; }
  .masthead__bars::before { top: -6px; }
  .masthead__bars::after { top: 6px; }
  .masthead__toggle[aria-expanded="true"] .masthead__bars { background: transparent; }
  .masthead__toggle[aria-expanded="true"] .masthead__bars::before { transform: translateY(6px) rotate(45deg); }
  .masthead__toggle[aria-expanded="true"] .masthead__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .masthead__nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 4px; padding: 8px var(--gutter) 20px;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    font-size: 13px; letter-spacing: .18em;
  }
  .masthead__nav.is-open { display: flex; }
  .masthead__nav a { min-height: 52px; width: 100%; border-bottom: 1px solid var(--line); }
  .masthead__nav a:last-child { border-bottom: 0; }
  .hero { background-size: calc((100% - 2 * var(--gutter)) / 2) 100%; }
  .hero__copy { grid-column: 1 / -1; grid-row: 4; }
  .hero__figure { grid-column: 1 / -1; grid-row: 3; }
  .hero__figure img { aspect-ratio: 4 / 5; height: auto; max-height: 68vh; object-position: 45% 60%; }
  .hero__line--b { font-size: clamp(54px, 19vw, 120px); }
  .hero__line--a { font-size: clamp(40px, 11vw, 80px); }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts { grid-template-columns: 1fr; row-gap: 16px; }
  .hero__facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; }
  .intro__title, .intro__body { grid-column: 1 / -1; }
  .intro__pillars { grid-template-columns: 1fr; row-gap: 18px; }
  .table__b, .table__c, .table__quote { grid-column: 1 / -1; }
  .table__b { aspect-ratio: 4 / 5; }
  .table__c { aspect-ratio: 3 / 2; }
  .together__figure img { height: 62vh; min-height: 380px; }
  .together__card { position: relative; right: auto; bottom: auto; width: auto; padding: 40px var(--gutter) 48px; }
  .reserve { padding-top: clamp(64px, 14vw, 96px); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact__title { font-size: clamp(36px, 11.5vw, 64px); }
  .contact__list { grid-template-columns: 1fr; row-gap: 22px; }
  .footer__meta { flex-direction: column; gap: 10px; }
}

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