/* 1a4u.com — groovy but composed */

:root {
  --ink: #1b1712;
  --paper: #f6ecd9;
  --gold: #d4a531;
  --rust: #c1502e;
  --moss: #4b6b3a;
  --plum: #6d3b6b;
  --sky: #2f7a8c;
  --line: rgba(27, 23, 18, 0.15);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  position: relative;
}

#groove-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.85;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */

header.site {
  padding: 56px 0 20px;
  text-align: center;
}

.mark {
  display: inline-block;
  font-size: 15px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 22px;
  background: rgba(246, 236, 217, 0.72);
  backdrop-filter: blur(2px);
}

h1.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 11vw, 108px);
  margin: 18px 0 6px;
  letter-spacing: 0.02em;
  background: linear-gradient(100deg, var(--rust), var(--gold) 30%, var(--moss) 55%, var(--sky) 75%, var(--plum));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hueTravel 14s ease-in-out infinite;
  text-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

@keyframes hueTravel {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.tagline {
  font-style: italic;
  font-size: 19px;
  opacity: 0.85;
  min-height: 1.4em;
}

/* Sections */

main { padding-bottom: 60px; }

section.panel {
  background: rgba(246, 236, 217, 0.86);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 36px;
  margin: 26px 0;
  box-shadow: 0 10px 30px rgba(27, 23, 18, 0.08);
  backdrop-filter: blur(3px);
}

section.panel h2 {
  margin-top: 0;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.6;
}

section.panel p {
  font-size: 18px;
  line-height: 1.7;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
  margin-top: 10px;
}

.pillar {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.35);
}

.pillar .glyph {
  font-size: 26px;
  display: block;
  margin-bottom: 8px;
}

.pillar h3 {
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: 0.06em;
}

.pillar p {
  font-size: 15px;
  margin: 0;
  opacity: 0.82;
  line-height: 1.55;
}

.riddle {
  text-align: center;
  font-size: 22px;
  font-style: italic;
  padding: 10px 0 4px;
}

.counter {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-top: -6px;
}

/* Danger zone */

.danger-zone {
  text-align: center;
  padding: 40px 0 70px;
}

.danger-zone .note {
  font-size: 13px;
  opacity: 0.55;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.dont-press {
  font-family: inherit;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  background: linear-gradient(120deg, var(--rust), #8f1f1f);
  border: none;
  border-radius: 999px;
  padding: 18px 42px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(143, 31, 31, 0.45);
  animation: throb 1.6s ease-in-out infinite;
  transition: transform 0.15s ease;
}

.dont-press:hover {
  transform: scale(1.04);
}

@keyframes throb {
  0%, 100% { box-shadow: 0 8px 24px rgba(143, 31, 31, 0.45); }
  50% { box-shadow: 0 8px 40px rgba(143, 31, 31, 0.75); }
}

footer.site {
  text-align: center;
  font-size: 12px;
  opacity: 0.5;
  padding: 20px 0 50px;
  letter-spacing: 0.08em;
}

/* Warning page */

.warn-wrap {
  max-width: 620px;
  margin: 90px auto;
  padding: 0 28px;
  text-align: center;
}

.warn-wrap h1 {
  font-size: 30px;
  margin-bottom: 6px;
}

.warn-wrap p {
  font-size: 17px;
  line-height: 1.7;
}

.back-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
}

@media (max-width: 560px) {
  section.panel { padding: 24px 22px; }
}
