:root {
  --bg: #f3eee6;
  --bg-accent: #ece4d7;
  --ink: #1c1916;
  --muted: #6a6359;
  --card: #fffdf8;
  --line: #ddd4c6;
  --accent: #8a3f28;
  --shadow: 0 1px 2px rgba(28, 25, 22, 0.04), 0 10px 28px rgba(28, 25, 22, 0.05);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161311;
    --bg-accent: #1e1a16;
    --ink: #f3eee6;
    --muted: #b0a79b;
    --card: #221e19;
    --line: #3a342c;
    --accent: #e7b39d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 30px rgba(0, 0, 0, 0.28);
    color-scheme: dark;
  }
}

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

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1200px 500px at 10% -10%, var(--bg-accent), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  min-height: 100%;
}

body {
  min-height: 100vh;
}

.page {
  width: min(980px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.5rem 0 3rem;
}

.hero {
  margin-bottom: 3rem;
}

.mark {
  width: 14px;
  height: 14px;
  margin: 0 0 1.25rem;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}

h1 {
  font-family: Fraunces, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 0.6rem;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 400;
}

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 1.15rem; }
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.4rem 1.45rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(28, 25, 22, 0.1);
  outline: none;
}

h2 {
  font-family: Fraunces, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.45rem;
}

.card p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  flex: 1;
  font-size: 1rem;
}

.url {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
  word-break: break-all;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover, .card:focus-visible { transform: none; }
}
