/* TOMBER — temporary site */
:root {
  --bg: #0b0b0a;
  --fg: #ece6da;
  --muted: #8b857a;
  --faint: #5c5852;
  --rule: #26241f;
  --accent: #c8b68f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { color: var(--accent); }
a:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

::selection { background: var(--accent); color: var(--bg); }

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.mark { color: var(--fg); font-weight: 600; letter-spacing: 0.32em; }

/* Main entry */
main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 8vh 32px 64px;
}

.entry { margin-bottom: 72px; }

.headword {
  font-size: clamp(64px, 16vw, 136px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.gram {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 18px;
  color: var(--muted);
}
.gram .pron { font-family: var(--mono); font-size: 15px; letter-spacing: 0.04em; padding-top: 2px; }
.gram .pos { font-style: italic; }

.rule { border: 0; border-top: 1px solid var(--rule); margin: 28px 0; }

.senses { list-style: none; }
.senses li {
  display: grid;
  grid-template-columns: 32px 1fr;
  font-size: clamp(24px, 4.4vw, 34px);
  line-height: 1.3;
}
.senses .num { font-family: var(--mono); font-size: 14px; color: var(--accent); padding-top: 12px; }

.example {
  margin-top: 18px;
  padding-left: 32px;
  font-style: italic;
  color: var(--muted);
  font-size: 17px;
}

/* Homepage panels: one full screen each */
.site-header.overlay { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 32px;
}
.hero { padding-bottom: 120px; }
.panel-last { flex-direction: column; align-items: stretch; padding: 0; }
.panel-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 96px 32px; }
.panel-last .site-footer { border-top: 1px solid var(--rule); }

/* Touch devices: native snapping between panels */
@media (hover: none) and (pointer: coarse) {
  html { scroll-snap-type: y mandatory; }
  .panel { scroll-snap-align: start; scroll-snap-stop: always; }
}

/* Panel content fades in when it arrives (only when JS is running) */
.js .fade { opacity: 0; transform: translateY(14px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .in-view .fade { opacity: 1; transform: none; }
.js .in-view .fade:nth-child(2) { transition-delay: 0.12s; }
.js .in-view .fade:nth-child(3) { transition-delay: 0.2s; }
.js .in-view .fade:nth-child(4) { transition-delay: 0.3s; }
.js .cue-late { opacity: 0; transition: opacity 1s ease 0.7s; }
.js .in-view .cue-late { opacity: 1; }
.hero-entry { width: 100%; max-width: 720px; margin: 0; }

.cue {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.cue.reveal { transform: translateX(-50%) translateY(10px); animation-name: rise-cue; }
.cue .arrow { font-size: 16px; color: var(--accent); animation: nudge 2.2s ease-in-out infinite; }
@keyframes rise-cue { to { opacity: 1; transform: translateX(-50%); } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Second entry */
.entry.secondary { width: 100%; max-width: 680px; margin: 0; }
.entry.secondary .headword { font-size: clamp(42px, 8vw, 68px); line-height: 1.05; }
.entry.secondary .gram { font-size: 18px; margin-top: 14px; }
.entry.secondary .rule { margin: 24px 0; }
.entry.secondary .senses li { font-size: clamp(20px, 3.4vw, 27px); line-height: 1.35; }
.entry.secondary .senses .num { padding-top: 8px; }

/* Coming soon */
.soon-wrap { display: flex; justify-content: center; }
.soon-box {
  text-align: center;
  padding: 48px 64px;
  position: relative;
  isolation: isolate;
}
.soon-box::before {
  content: "";
  position: absolute;
  inset: -24px -40px;
  z-index: -1;
  border-radius: 80px;
  background: rgba(214, 208, 196, 0.032);
  filter: blur(48px);
}
.soon-title {
  font-size: clamp(38px, 7vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.soon-box .soon-sub { margin-top: 14px; font-size: 17px; }
.see-also {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

/* Coming soon */
.soon {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg);
}
.soon .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
.soon-sub { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 32px 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 32px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer .legal a { color: var(--faint); }
.site-footer .legal a:hover { color: var(--accent); }

/* Legal pages */
.doc { max-width: 680px; }
.doc .back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
}
.doc h1 { font-size: clamp(40px, 8vw, 60px); font-weight: 400; line-height: 1.05; }
.doc .updated { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 12px; letter-spacing: 0.08em; }
.doc h2 { font-size: 22px; font-weight: 400; margin: 40px 0 10px; color: var(--fg); }
.doc p, .doc li { font-size: 17px; color: #cfc9bd; }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 10px 0 0 20px; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--accent); border-bottom: 1px solid var(--rule); }

/* Motion */
.reveal { opacity: 0; transform: translateY(10px); animation: rise 0.9s ease forwards; }
.d1 { animation-delay: 0.1s; } .d2 { animation-delay: 0.45s; } .d3 { animation-delay: 0.8s; }
.d4 { animation-delay: 1.15s; } .d5 { animation-delay: 1.5s; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .js .fade { opacity: 1; transform: none; transition: none; }
  .js .cue-late { opacity: 1; transition: none; }
  .cue.reveal { transform: translateX(-50%); }
  .soon .dot, .cue .arrow { animation: none; }
}

@media (max-width: 560px) {
  .site-header, .site-footer { padding-left: 16px; padding-right: 16px; }
  main { padding: 6vh 16px 48px; }
  .panel { padding: 88px 16px; }
  .hero { padding-bottom: 110px; }
  .panel-last { padding: 0; }
  .panel-center { padding: 88px 16px; }
  .soon-box { padding: 36px 32px; }
  .senses li { grid-template-columns: 26px 1fr; }
  .example { padding-left: 26px; }
  .site-footer { flex-direction: column; }
}
