/* Internet Leftovers — junk-drawer / leftover-tab feel */
:root {
  --bg: #1a1714;
  --bg-card: #24201b;
  --bg-raised: #2c2721;
  --ink: #f3ebe0;
  --muted: #b5a894;
  --accent: #e8a04a;
  --accent-2: #7ec8a3;
  --danger: #d4786a;
  --line: #3d362e;
  --tape: #f0d78c;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --display: "IBM Plex Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(232, 160, 74, 0.12), transparent 45%),
    radial-gradient(ellipse at 90% 20%, rgba(126, 200, 163, 0.08), transparent 40%),
    linear-gradient(180deg, #1f1b17 0%, var(--bg) 40%, #151210 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #ffc06e;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3.5rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0 1.5rem;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent), #c46b2f);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: -0.02em;
  color: #1a1208;
  transform: rotate(-3deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.8rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--bg-raised);
}

.hero {
  margin-bottom: 2.25rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin-bottom: 0.85rem;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(126, 200, 163, 0.2);
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.promise {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38ch;
  margin: 0 0 1.5rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #1a1208;
}

.btn-primary:hover {
  color: #1a1208;
  background: #ffb45c;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  color: var(--ink);
  background: var(--bg-raised);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
  position: relative;
}

.card.tape::before {
  content: "leftover";
  position: absolute;
  top: -0.55rem;
  right: 1.2rem;
  background: var(--tape);
  color: #3a2f12;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  transform: rotate(2deg);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}

.section {
  margin: 2.5rem 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.latest-placeholder {
  display: grid;
  gap: 1rem;
  place-items: center;
  text-align: center;
  min-height: 220px;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.02) 10px,
      rgba(255, 255, 255, 0.02) 20px
    ),
    var(--bg-raised);
  border: 2px dashed var(--line);
  border-radius: calc(var(--radius) - 4px);
  padding: 2rem 1.25rem;
}

.latest-placeholder .tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid rgba(232, 160, 74, 0.35);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.latest-placeholder h3 {
  margin-bottom: 0.35rem;
}

.latest-placeholder p {
  margin: 0;
  color: var(--muted);
  max-width: 36ch;
}

.beats {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .beats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.beat {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}

.beat-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.beat h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.beat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.prose {
  max-width: 62ch;
}

.prose p,
.prose ul {
  color: var(--muted);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose strong {
  color: var(--ink);
}

.callout {
  border-left: 3px solid var(--accent-2);
  padding: 0.85rem 1rem;
  background: rgba(126, 200, 163, 0.08);
  border-radius: 0 10px 10px 0;
  margin: 1.25rem 0;
  color: var(--ink);
}

.callout.warn {
  border-left-color: var(--danger);
  background: rgba(212, 120, 106, 0.08);
}

.form-panel {
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid rgba(232, 160, 74, 0.45);
  border-color: var(--accent);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .fine {
  font-family: var(--mono);
  font-size: 0.78rem;
  margin-top: 0.75rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 520px) {
  .site-header {
    align-items: flex-start;
  }
}
