/* Godspeed Bagel. Brand: Round Two guidelines.
   Sesame Paper #F6EDE0 · Aged Ink #403F36 · Typewriter Red #A0402D (sparse). Louize only. */

@font-face { font-family: "Louize"; src: url("/fonts/gb-r.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Louize"; src: url("/fonts/gb-m.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Louize"; src: url("/fonts/gb-mi.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Louize"; src: url("/fonts/gb-b.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --paper: #F6EDE0;
  --ink: #403F36;
  --red: #A0402D;
  --photo: #EBDFCD;
  --serif: "Louize", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.26;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p { margin: 0; }
img { max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
em, .it { font-style: italic; }

.skip {
  position: absolute; left: 24px; top: -60px; z-index: 10;
  padding: 10px 16px; background: var(--paper); border: 1px solid var(--ink);
}
.skip:focus { top: 24px; }

/* ---------- Navigation ---------- */
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav a { display: flex; align-items: center; min-height: 48px; font-weight: 700; }
.nav a[aria-current="page"] { color: var(--red); }

/* ---------- Landing ---------- */
.landing {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 64px 120px 112px;
}

.landing__frame .rule { position: fixed; background: var(--ink); pointer-events: none; }
.landing__frame .rule--outer { inset: 16px; background: none; border: 1px solid var(--ink); }
.landing__frame .rule--top    { top: 28px;    left: 94px; right: 94px; height: 1px; }
.landing__frame .rule--bottom { bottom: 28px; left: 94px; right: 94px; height: 1px; }
.landing__frame .rule--left   { left: 28px;  top: 94px; bottom: 94px; width: 1px; }
.landing__frame .rule--right  { right: 28px; top: 94px; bottom: 94px; width: 1px; }

.landing__main { display: flex; flex-direction: column; align-items: center; text-align: center; }

.landing__title {
  margin: 0;
  font-weight: 400;
  font-size: clamp(40px, min(6.1vw, 9.8vh), 88px);
  line-height: 0.886;
  letter-spacing: 0.05em;
}

.landing__badge {
  display: block;
  height: clamp(110px, 27.5vh, 248px);
  width: auto;
  margin-top: clamp(20px, 6.6vh, 60px);
}

.nav--landing { margin-top: clamp(14px, 4.9vh, 44px); }
.nav--landing ul { gap: 56px; }
.nav--landing a { padding: 0 8px; font-size: 22px; letter-spacing: 0.15em; }

.landing__tagline {
  margin-top: clamp(10px, 3.1vh, 28px);
  font-size: 19px;
  line-height: 23px;
}

.landing__corner {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 19px;
  line-height: 22px;
}
.landing__corner--left { left: 120px; }
.landing__corner--right { right: 120px; text-align: right; }

@media (max-width: 1080px) {
  .landing { padding-inline: 72px; }
  .landing__title { font-size: clamp(40px, min(8vw, 9.8vh), 88px); }
  .landing__corner--left { left: 72px; }
  .landing__corner--right { right: 72px; }
  .nav--landing ul { gap: 32px; }
}

/* Phone and narrow tablet: stacked nav, corner text along the bottom */
@media (max-width: 760px) {
  .landing { padding: 68px 40px 120px; align-content: start; }
  .landing__frame .rule--outer { inset: 10px; }
  .landing__frame .rule--top    { top: 18px;    left: 48px; right: 48px; }
  .landing__frame .rule--bottom { bottom: 18px; left: 48px; right: 48px; }
  .landing__frame .rule--left   { left: 18px;  top: 48px; bottom: 48px; }
  .landing__frame .rule--right  { right: 18px; top: 48px; bottom: 48px; }

  .landing__title { font-size: 46px; line-height: 42px; }
  .landing__badge { height: clamp(100px, 20.3vh, 171px); margin-top: clamp(20px, 4.7vh, 40px); }
  .nav--landing { margin-top: clamp(14px, 3.3vh, 28px); }
  .nav--landing ul { flex-direction: column; gap: 4px; }
  .nav--landing a { justify-content: center; min-width: 200px; font-size: 20px; padding: 0; }
  .landing__tagline { margin-top: clamp(14px, 2.8vh, 24px); font-size: 16px; line-height: 20px; }

  .landing__corner {
    position: absolute;
    top: auto;
    bottom: 44px;
    transform: none;
    font-size: 15px;
    line-height: 18px;
  }
  .landing__corner--left { left: 40px; }
  .landing__corner--right { right: 40px; }
}

@media (max-width: 760px) and (max-height: 720px) {
  .landing { padding-top: 52px; }
  .landing__title { font-size: 40px; line-height: 37px; }
  .nav--landing a { min-height: 42px; }
}

/* ---------- Inner pages ---------- */
.frame {
  margin: 16px;
  min-height: calc(100vh - 32px);
  min-height: calc(100svh - 32px);
  border: 1px solid var(--ink);
  padding: 56px clamp(20px, 7.2vw, 104px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-header {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: 32px;
  align-items: center;
}
.site-header__place { display: flex; flex-direction: column; gap: 2px; font-size: 19px; line-height: 22px; }
.site-header__home { justify-self: center; display: flex; align-items: center; justify-content: center; width: 80px; height: 64px; }
.site-header__home img { width: 66px; height: 56px; display: block; }
.nav--inner { justify-self: end; }
.nav--inner ul { gap: 24px; }
.nav--inner a { font-size: 18px; letter-spacing: 0.12em; }

.wrap {
  width: 100%;
  max-width: 1200px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-title {
  margin: clamp(56px, 7.2vw, 104px) 0 0;
  font-weight: 400;
  font-size: clamp(50px, 6.1vw, 88px);
  line-height: 1;
  letter-spacing: 0.05em;
  text-align: center;
}

.statement {
  margin-top: clamp(32px, 3.9vw, 56px);
  max-width: 860px;
  font-size: clamp(21px, 1.9vw, 27px);
  line-height: 1.41;
  text-align: center;
}
.caps { text-transform: uppercase; }
.caps em { text-transform: none; }

.lede {
  margin-top: 40px;
  max-width: 640px;
  font-size: 21px;
  line-height: 32px;
  letter-spacing: 0.03em;
  text-align: center;
}
.lede--after { margin-top: clamp(48px, 5vw, 72px); }
.lede a { text-decoration: underline; text-underline-offset: 3px; }

/* Photos and their placeholders */
.photo {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--photo);
}
.photo picture { display: contents; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
}
.photo__label { font-size: 18px; font-weight: 700; letter-spacing: 0.12em; }
.photo__note { font-size: 19px; line-height: 24px; font-style: italic; letter-spacing: 0.03em; }

.photo--wide { margin-top: clamp(48px, 5.6vw, 80px); aspect-ratio: 20 / 9; }
.photo--square { aspect-ratio: 1 / 1; }
.photo--location { aspect-ratio: 576 / 420; }

.photo-grid {
  margin-top: clamp(48px, 5.6vw, 80px);
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Name · description ........ detail lists (events, partners) */
.label { margin: 0; font-size: 20px; line-height: 24px; font-weight: 700; letter-spacing: 0.15em; text-align: center; }

.listing { margin-top: clamp(56px, 6vw, 88px); width: min(820px, 100%); }
.listing > .label { margin-bottom: 36px; }
.listing__items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.listing__empty { text-align: center; }

.entry { display: flex; flex-direction: column; gap: 2px; }
.entry__name { font-size: 20px; line-height: 26px; font-weight: 700; letter-spacing: 0.05em; }
.entry__line { display: flex; align-items: flex-end; gap: 8px; font-size: 19px; line-height: 24px; letter-spacing: 0.03em; }
.entry__leader { flex: 1 1 24px; margin-bottom: 6px; border-bottom: 1px dotted var(--ink); }
.entry__meta { letter-spacing: 0.08em; text-align: right; }

.boxed {
  margin-top: clamp(64px, 6.7vw, 96px);
  width: min(820px, 100%);
  padding: clamp(32px, 3.4vw, 48px) clamp(20px, 4.5vw, 64px);
  border: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.boxed p { max-width: 560px; font-size: 21px; line-height: 32px; letter-spacing: 0.03em; }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.button:hover { border-color: var(--red); }
.button--accent { border-color: var(--red); color: var(--red); }
.button--accent:hover { background: var(--red); color: var(--paper); }

/* Locations */
.locations {
  margin-top: clamp(56px, 6.7vw, 96px);
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}
.location { display: flex; flex-direction: column; gap: 36px; }
.location__text { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.location__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; column-gap: 14px; row-gap: 4px; margin-bottom: 14px; }
.location__status { font-size: 20px; line-height: 24px; letter-spacing: 0.03em; }
.location__addr { font-size: 21px; line-height: 30px; }
.location__hours { margin-top: 12px; }
.location .button { margin-top: 24px; }

.stamp { display: block; width: 100px; height: auto; margin-top: clamp(56px, 5vw, 80px); }

/* Footer */
.site-footer {
  padding-top: clamp(56px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 19px;
  line-height: 24px;
  text-align: center;
}
.site-footer__name { font-weight: 700; letter-spacing: 0.15em; margin-bottom: 8px; }
.site-footer .nw { white-space: nowrap; }
.site-footer__ig { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .site-header { display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .site-header__place { display: none; }
  .nav--inner { justify-self: auto; }
  .nav--inner ul { flex-wrap: wrap; justify-content: center; column-gap: 20px; row-gap: 0; }
  .nav--inner a { font-size: 16px; }
}

@media (max-width: 860px) {
  .locations { grid-template-columns: 1fr; gap: 64px; }
}

@media (max-width: 760px) {
  .photo-grid { grid-template-columns: 1fr; gap: 16px; }
  .photo--square { aspect-ratio: 4 / 3; }
  .photo--wide { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .frame { margin: 10px; min-height: calc(100svh - 20px); padding-top: 32px; padding-bottom: 40px; }
  .nav--inner ul { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; column-gap: 32px; }
  .nav--inner a { justify-content: center; font-size: 15px; letter-spacing: 0.12em; min-height: 44px; }
  .lede, .boxed p { font-size: 18px; line-height: 27px; }
  .statement { font-size: 19px; line-height: 1.45; }
  .entry__name { font-size: 18px; line-height: 24px; }
  .entry__line { flex-wrap: wrap; font-size: 17px; line-height: 22px; }
  .entry__desc { flex-basis: 100%; }
  .entry__leader { display: none; }
  .entry__meta { text-align: left; font-size: 15px; }
  .location__addr { font-size: 18px; line-height: 26px; }
  .site-footer { font-size: 16px; line-height: 22px; }
  .label { font-size: 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  a { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
}
