:root {
  --bg: #fbf7ef;
  --panel: #ffffff;
  --ink: #121216;
  --muted: #4b5563;
  --muted2: #6b7280;
  --line: rgba(18, 18, 22, 0.10);

  --brand: #0f766e;        /* teal */
  --brand2: #ea580c;       /* warm orange */
  --link: #0b3a8a;         /* deep blue */
  --accent: #f59e0b;       /* amber */
  --accent2: #14b8a6;      /* teal alt */

  --radius: 18px;
  --radius2: 26px;

  --shadow: 0 14px 38px rgba(18, 18, 22, 0.10);
  --shadow2: 0 10px 24px rgba(18, 18, 22, 0.08);

  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 10% 5%, rgba(20, 184, 166, 0.18), transparent 55%),
    radial-gradient(900px 600px at 90% 12%, rgba(245, 158, 11, 0.16), transparent 55%),
    radial-gradient(900px 600px at 20% 80%, rgba(15, 118, 110, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg), #fff);
  font-family: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(251, 247, 239, 0.82);
  border-bottom: 1px solid rgba(18, 18, 22, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.25);
}

.brand-title {
  font-family: "Fraunces", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 20px;
  color: var(--ink);
}

.brand-tagline {
  font-size: 13px;
  color: var(--muted2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  position: relative;
}

.nav a:hover {
  background: rgba(20, 184, 166, 0.12);
  text-decoration: none;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0;
  transition: opacity 120ms ease;
}

.nav a:hover::after {
  opacity: 0.7;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(18, 18, 22, 0.10);
  border-radius: 14px;
  padding: 8px 10px;
  box-shadow: 0 10px 18px rgba(18, 18, 22, 0.04);
}

.search input[type="search"] {
  border: 0;
  outline: none;
  background: transparent;
  width: 220px;
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(18, 18, 22, 0.12);
  background: #fff;
  color: var(--ink);
}

.btn:hover { text-decoration: none; box-shadow: var(--shadow2); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--accent2));
  border-color: rgba(0,0,0,0);
  color: #fff;
}

.hero {
  padding: 54px 0 22px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: stretch;
}

.hero-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.9), rgba(255,255,255,0.65));
  border: 1px solid rgba(18, 18, 22, 0.10);
  border-radius: var(--radius2);
  padding: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -160px -120px auto auto;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle at 30% 30%, rgba(245,158,11,0.28), transparent 55%);
  transform: rotate(12deg);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto auto -220px -140px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at 30% 30%, rgba(20,184,166,0.22), transparent 60%);
  transform: rotate(-8deg);
}

.hero h1 {
  margin: 0 0 10px;
  font-family: "Fraunces", serif;
  letter-spacing: -0.03em;
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.08;
}

.hero p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  max-width: 62ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.k-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 10px 14px rgba(234, 88, 12, 0.18);
}

.side-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  border: 1px solid rgba(18, 18, 22, 0.10);
  border-radius: var(--radius2);
  padding: 22px;
  box-shadow: var(--shadow2);
}

.panel-title {
  font-family: "Fraunces", serif;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.panel-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.section {
  padding: 18px 0 40px;
}

.section h2 {
  font-family: "Fraunces", serif;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-size: 22px;
  position: relative;
}

.section h2::after {
  content: "";
  display: block;
  width: 62px;
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card {
  grid-column: span 4;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(18, 18, 22, 0.08);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 20px rgba(18, 18, 22, 0.06);
  transition: transform 120ms ease, box-shadow 120ms ease;
  position: relative;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15,118,110,0.6), rgba(245,158,11,0.6));
}

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

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.posts {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}

.post-list {
  display: grid;
  gap: 12px;
}

.post-item {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(18, 18, 22, 0.08);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
}

.post-item::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 6px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  opacity: 0.5;
}

.post-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.post-meta {
  font-size: 12px;
  color: var(--muted2);
}

.post-meta a {
  color: var(--brand);
  font-weight: 600;
}

.sidebar {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.75));
  border: 1px solid rgba(18, 18, 22, 0.10);
  border-radius: var(--radius2);
  padding: 18px;
  height: fit-content;
  position: sticky;
  top: 84px;
}

.sidebar h3 {
  font-family: "Fraunces", serif;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.sidebar a {
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--ink);
}

.sidebar a:hover {
  background: rgba(18, 18, 22, 0.06);
  text-decoration: none;
}

.article {
  padding: 34px 0 54px;
}

.article .content {
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(18, 18, 22, 0.10);
  border-radius: var(--radius2);
  padding: 26px;
  box-shadow: var(--shadow);
}

.article h1 {
  font-family: "Fraunces", serif;
  margin: 0 0 10px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.content h2 {
  font-family: "Fraunces", serif;
  letter-spacing: -0.02em;
  margin-top: 24px;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(18, 18, 22, 0.10);
}

.infotips-figure {
  margin: 18px 0 22px;
  padding: 12px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(18, 18, 22, 0.10);
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(18, 18, 22, 0.06);
}

.infotips-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.infotips-figure figcaption {
  font-size: 12px;
  color: var(--muted2);
  margin-top: 8px;
  line-height: 1.4;
}

.content th, .content td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(18, 18, 22, 0.08);
  vertical-align: top;
}

.content th {
  background: rgba(15, 118, 110, 0.08);
  text-align: left;
}

.site-footer {
  border-top: 1px solid rgba(18, 18, 22, 0.10);
  padding: 28px 0;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}

.footer-nav a { margin-right: 12px; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .sidebar { position: relative; top: 0; }
  .card { grid-column: span 6; }
}

@media (max-width: 620px) {
  .header-inner { flex-wrap: wrap; }
  .search input[type="search"] { width: 160px; }
  .card { grid-column: span 12; }
  .brand-tagline { display: none; }
}
