@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Albert Sans";
  src: url("/assets/fonts/albert-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fcfbf6;
  --ink: #003e34;
  --gutter: clamp(28px, 5.45vw, 108px);
  font-family: "Albert Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
body { margin: 0; touch-action: pinch-zoom; }
::selection { background: #cedbcc; color: #003e34; }

.scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.landscape { width: 100%; height: 100%; display: block; }

/* A static, tiny SVG texture: no per-frame noise or bitmap downloads. */
.paper {
  position: absolute;
  inset: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%234a5145' filter='url(%23n)' opacity='.6' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  padding: clamp(18px, 4.7dvh, 60px) var(--gutter) clamp(16px, 3.4dvh, 40px);
}

.masthead { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: block; flex: none; width: clamp(145px, 12.05vw, 195px); color: var(--ink); }
.brand svg { display: block; width: 100%; height: auto; }
.brand .leaf, .brand .word { fill: currentColor; }
.brand:focus-visible { outline: 1px solid var(--ink); outline-offset: 6px; border-radius: 2px; }
.status { display: flex; align-items: center; gap: 20px; margin: 0; font-size: clamp(14px, 1.2vw, 19px); font-weight: 400; white-space: nowrap; }
.status-dot { width: 15px; height: 15px; background: #bdcebb; border-radius: 50%; }

main { display: flex; flex: 1; min-height: 0; flex-direction: column; justify-content: center; }
h1 {
  margin: 0;
  max-width: 1200px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: min(8.12vw, 11.7dvh, 156px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.025em;
}
h1 > span { display: block; }
.intro { margin: clamp(18px, 4.4dvh, 46px) 0 0; font-size: clamp(20px, 1.94vw, 32px); line-height: 1.45; font-weight: 350; letter-spacing: -.02em; }
.announcement { display: flex; align-items: center; gap: 27px; margin: clamp(16px, 6.7dvh, 70px) 0 0; font-size: clamp(14px, 1.2vw, 19px); line-height: 1.65; font-weight: 400; letter-spacing: .16em; }
.rule { flex: none; width: 89px; height: 1px; background: #7f9b8e; }

@media (min-width: 1700px) {
  .page { max-width: 1920px; margin-inline: auto; }
}

@media (max-width: 900px) {
  h1 { font-size: min(8.7vw, 11.7dvh); line-height: .98; }
  .intro { max-width: 620px; margin-top: min(4.4dvh, 36px); }
  .announcement { margin-top: min(6.7dvh, 56px); gap: 20px; font-size: 13px; letter-spacing: .12em; }
  .rule { width: 56px; }
  .landscape { width: 140%; margin-left: -40%; }
}

@media (max-width: 600px) {
  .page { padding-top: clamp(18px, 3.3dvh, 28px); padding-bottom: clamp(12px, 2.8dvh, 24px); }
  .brand { width: 135px; }
  .masthead { gap: 12px; }
  .status { gap: 9px; font-size: 12px; }
  .status-dot { width: 8px; height: 8px; }
  h1 { max-width: 520px; font-size: min(clamp(42px, 11.3vw, 68px), 11.7dvh); line-height: 1.01; letter-spacing: -.024em; }
  h1 > span { display: inline; }
  h1 > span:first-child, h1 > span:last-child { display: block; }
  .intro { margin-top: min(3.55dvh, 30px); max-width: 350px; font-size: 18px; line-height: 1.5; }
  .announcement { align-items: flex-start; gap: 16px; margin-top: min(5.5dvh, 46px); max-width: 325px; font-size: 12px; line-height: 1.85; letter-spacing: .1em; }
  .rule { width: 33px; margin-top: 11px; }
  .landscape { width: 230%; margin-left: -130%; opacity: .76; }
}

/* Short windows and landscape phones keep every line inside the viewport. */
@media (max-height: 600px) {
  .page { padding-top: 14px; padding-bottom: 10px; }
  .brand { width: 110px; }
  h1 { font-size: min(8.7vw, 10.5dvh); }
  .intro { margin-top: 14px; font-size: 16px; line-height: 1.35; }
  .announcement { margin-top: 20px; font-size: 12px; }
}

@media (max-width: 600px) and (max-height: 600px) {
  h1 { font-size: min(11.3vw, 10.5dvh); }
}
