/* Pub Manager website. Palette: imperial blue and amber (design canvas "Pub Manager Website"). */
:root {
  --ground: #01295f;
  --on-ground: #ffffff;
  --muted-on-ground: #d6e0f0;
  --paper: #ffffff;
  --ink: #01295f;
  --muted-ink: #36677b;
  --btn: #ffb30f;
  --on-btn: #01295f;
  --soon-ink: #fd151b;
  --edge: #ffb30f;
  --tape: #437f97;
  --line: #437f97;
  --focus: #ffb30f;
  --display: 'Archivo Black', Archivo, system-ui, sans-serif;
  --body: Archivo, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--ground); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--on-ground);
  font-family: var(--body);
  font-size: 15px;
  line-height: 22px;
}

a { color: var(--on-ground); }
a:hover { color: var(--muted-on-ground); }
.paper a { color: var(--ink); }
.paper a:hover { color: var(--muted-ink); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  z-index: 10;
}
.skip:focus { top: 8px; }

/* Header and footer */
.site-header, .site-footer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 12px;
}
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; }
.site-header nav { gap: 0 18px; font-size: 14px; line-height: 20px; font-weight: 600; }
.site-footer nav { gap: 0 20px; }
.site-header a, .site-footer nav a { display: flex; align-items: center; min-height: 44px; }
.site-header nav a { text-decoration: none; }
.site-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.wordmark {
  font-family: var(--display);
  font-size: clamp(18px, 5vw, 22px);
  letter-spacing: 0.5px;
  text-decoration: none;
}
.site-footer {
  padding: 16px 20px 24px;
  border-top: 2px solid var(--line);
  gap: 4px 12px;
  font-size: 13px;
  line-height: 18px;
  color: var(--muted-on-ground);
}

/* Shared paper notice */
.paper {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border: 2.5px solid var(--edge);
  border-radius: 4px;
}
.tape {
  position: absolute;
  top: -14px;
  left: 50%;
  margin-left: -56px;
  width: 112px;
  height: 28px;
  background: var(--tape);
  opacity: 0.85;
  transform: rotate(2deg);
}
.tape.left { transform: rotate(-2deg); }
.rule { width: 100%; border-top: 2.5px solid var(--ink); }
.kicker {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

/* Home: notice in the window */
.home {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 6vw, 56px);
}
.notice-wrap { flex: 0 1 500px; min-width: 0; transform: rotate(-1.5deg); }
.notice {
  padding: clamp(28px, 7vw, 40px) clamp(22px, 6vw, 32px) clamp(24px, 6vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.notice .tape { transform: rotate(2deg); }
.notice h1 { font-size: clamp(34px, 5vw, 46px); }
.soon {
  margin: 0;
  padding: 2px 10px;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--soon-ink);
}
.notice .apology { margin: 0; color: var(--muted-ink); }
.notice .signed { margin: 0; font-size: 13px; line-height: 18px; font-weight: 600; }

.pitch { flex: 1 1 420px; min-width: 0; max-width: 520px; display: flex; flex-direction: column; gap: 24px; }
.pitch h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.05; }
.pitch .lede { margin: 0; font-size: 17px; line-height: 26px; color: var(--muted-on-ground); }

.signup { display: flex; flex-direction: column; gap: 8px; }
.signup label { font-weight: 600; }
.signup .row { display: flex; flex-wrap: wrap; gap: 8px; }
.signup input {
  flex: 999 1 220px;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 2.5px solid var(--edge);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 0 auto;
  height: 52px;
  padding: 0 22px;
  border: 2.5px solid var(--edge);
  border-radius: 12px;
  background: var(--btn);
  color: var(--on-btn);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:disabled { opacity: 0.7; cursor: progress; }
.hint { font-size: 13px; line-height: 18px; color: var(--muted-on-ground); }
.hint.error { color: var(--on-ground); font-weight: 600; }

.saved {
  border: 2.5px dashed var(--edge);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.saved strong { font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 24px; text-transform: uppercase; }

.hours {
  border: 2.5px solid var(--edge);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hours h3 {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted-on-ground);
}
.hours div { display: flex; justify-content: space-between; gap: 12px; }
.hours div span:last-child { font-weight: 600; }

/* Other pages */
.page {
  flex: 1 0 auto;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 20px 72px;
}
.page article {
  padding: 48px clamp(20px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.page .title { display: flex; flex-direction: column; gap: 12px; text-align: center; align-items: center; }
.page h1 { font-size: clamp(36px, 5vw, 52px); }
.page .updated { margin: 0; font-size: 13px; line-height: 18px; color: var(--muted-ink); }
.page section { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.page section.contact { gap: 12px; }
.page h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 19px; line-height: 1.15; text-transform: uppercase; }
.page p, .page ol { margin: 0; font-size: 16px; line-height: 26px; }
.page ol { padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.page .btn { flex: 0 0 auto; height: 48px; padding: 0 20px; border-color: var(--ink); }
.paper a.btn, .paper a.btn:hover { color: var(--on-btn); }
.warning {
  background: var(--btn);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 16px 20px;
  font-weight: 600;
}

[hidden] { display: none !important; }
