/* Fonts are served from this site (no Google Fonts calls = no visitor IPs sent to Google). */
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url(fonts/instrument-serif-italic.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Space Grotesk"; font-weight: 300 700; src: url(fonts/space-grotesk.woff2) format("woff2"); font-display: swap; }

:root {
  --paper: #f4f1ea;
  --ink: #111;
  --tape: #ff5a1f;
  --red: #c2380f;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 3vw, 36px) var(--pad) clamp(32px, 3vw, 36px);
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 "Space Grotesk", system-ui, sans-serif;
}

a { color: var(--ink); }
a:hover { color: var(--red); }
a:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; }

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: clamp(12px, 1.5vw, 18px);
  border-bottom: 2px solid var(--ink);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: clamp(16px, 1.5vw, 18px);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  background: var(--tape);
  font-weight: 700;
  text-decoration: none;
}
.btn:hover { color: var(--ink); background: #ff7443; }
.btn-big { display: flex; min-height: 56px; font-size: 18px; }

main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 36px 0 40px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* on a very narrow screen the box drops below instead of spilling off the edge */
  gap: 40px;
}

h1 {
  margin: 0;
  font: 400 clamp(92px, 18vw, 230px)/0.82 "Instrument Serif", Georgia, serif;
  letter-spacing: -0.04em;
}
h1 em { color: var(--red); }

.box { flex-shrink: 0; width: clamp(110px, 30vw, 380px); height: auto; }

.mobile-only p { margin: 0 0 24px; font-size: 18px; }

footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}
footer h2 {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.taped { position: relative; }
.taped::before {
  content: "";
  position: absolute;
  top: -34px;
  left: -14px;
  width: 120px;
  height: 26px;
  background: var(--tape);
  opacity: 0.9;
  transform: rotate(-4deg);
}

/* Phones: header button shrinks to an outline, the big button takes over, footer stacks. */
@media (max-width: 720px) {
  .bar .btn { background: none; border: 2px solid var(--ink); min-height: 44px; padding: 0 16px; font-size: 15px; }
  .bar .btn svg { display: none; }
  .hero { align-items: flex-end; gap: 12px; }
  footer { grid-template-columns: 1fr; gap: 22px; }
  .taped::before { display: none; }
}
@media (min-width: 721px) {
  .mobile-only { display: none; }
}
