:root {
  color-scheme: light;
  --ink: #1f2320;
  --muted: #68716a;
  --paper: #fbfaf5;
  --surface: #ffffff;
  --surface-warm: #f2eadf;
  --line: #ded8cd;
  --coral: #c95d3f;
  --coral-dark: #8f3824;
  --green: #3f7356;
  --blue: #315f73;
  --gold: #d99b3d;
  --shadow: 0 20px 60px rgba(31, 35, 32, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(251, 250, 245, 0.96)),
    repeating-linear-gradient(90deg, rgba(31, 35, 32, 0.045) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(0deg, rgba(31, 35, 32, 0.035) 0 1px, transparent 1px 86px),
    var(--paper);
  color: var(--ink);
  font-family: Avenir Next, Gill Sans, Optima, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 18px 0;
  backdrop-filter: blur(18px);
  background: rgba(251, 250, 245, 0.82);
  border-bottom: 1px solid rgba(222, 216, 205, 0.75);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-family: Georgia, Times New Roman, serif;
  font-weight: 700;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
  min-height: min(760px, calc(100vh - 72px));
  padding: 58px 0 50px;
}

.hero-minimal {
  display: block;
  max-width: 860px;
  min-height: auto;
  padding: clamp(72px, 14vw, 148px) 0 clamp(48px, 9vw, 92px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, Times New Roman, serif;
  font-size: clamp(2.6rem, 6.4vw, 5.45rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-minimal h1 {
  max-width: 760px;
  font-size: clamp(2.65rem, 6vw, 5rem);
}

.page-title {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, Times New Roman, serif;
  font-size: clamp(2.45rem, 5.8vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lede {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: white;
}

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

.study-board {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.study-board::before {
  content: "";
  display: block;
  height: 10px;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--green), var(--blue));
}

.board-inner {
  padding: clamp(24px, 5vw, 42px);
}

.mini-label {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verb-snapshot {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.verb-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.verb-row span:first-child {
  color: var(--muted);
  font-weight: 800;
}

.verb-row span:last-child {
  font-family: Georgia, Times New Roman, serif;
  font-size: 1.55rem;
}

.section {
  padding: 46px 0 88px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.section h2,
.content-card h2 {
  margin: 0;
  font-family: Georgia, Times New Roman, serif;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-header p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.resource,
.content-card,
.article-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 30px rgba(31, 35, 32, 0.05);
}

.resource {
  min-height: 250px;
  padding: 28px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.resource:hover,
.article-link:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 35, 32, 0.42);
  box-shadow: var(--shadow);
}

.resource-tag {
  display: inline-flex;
  color: var(--coral-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.resource > .resource-tag,
.article-link > .resource-tag {
  margin-bottom: 28px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
}

.level-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(49, 95, 115, 0.28);
  border-radius: 999px;
  background: rgba(49, 95, 115, 0.08);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
}

.resource h3,
.article-link h2 {
  margin: 0 0 14px;
  font-family: Georgia, Times New Roman, serif;
  font-size: 1.28rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.resource p,
.content-card p,
.article-link p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-main {
  padding: 56px 0 80px;
}

.page-intro {
  max-width: 860px;
  margin-bottom: 46px;
}

.article-hub .page-title,
.grammar-hub .page-title,
.vocabulary-hub .page-title,
.tools-hub .page-title {
  max-width: 700px;
  font-size: clamp(2.1rem, 4.4vw, 3.55rem);
  line-height: 1.08;
}

.article-intro {
  margin-bottom: 34px;
}

.article-featured {
  margin-bottom: 72px;
}

.article-library {
  padding-top: 10px;
}

.content-card {
  padding: clamp(24px, 5vw, 46px);
}

.article-body {
  max-width: 780px;
  padding-top: 28px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.article-body .page-title {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.1;
}

.article-body .lede {
  max-width: 700px;
  margin-top: 28px;
  font-size: clamp(1.08rem, 1.7vw, 1.2rem);
  line-height: 1.72;
}

.article-body h2 {
  margin-top: 52px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.35rem, 2.3vw, 1.78rem);
  line-height: 1.22;
}

.article-body p,
.article-body li {
  font-size: 1.08rem;
  line-height: 1.86;
}

.article-body p + p,
.article-body ul + p,
.article-body p + ul {
  margin-top: 22px;
}

.article-body ul {
  margin: 22px 0 0;
  padding-left: 26px;
  color: var(--muted);
}

.article-body li + li {
  margin-top: 10px;
}

.article-list {
  display: grid;
  gap: 22px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.article-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.article-link {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 28px;
  text-decoration: none;
}

.article-link .card-meta {
  margin-bottom: 28px;
}

.article-link p {
  margin-top: auto;
}

.site-footer {
  padding: 26px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.daily-quote {
  max-width: 860px;
  padding: 0 0 36px;
}

.daily-quote blockquote {
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.daily-quote blockquote p {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, Times New Roman, serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.22;
}

.daily-quote blockquote footer {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.98rem;
}

.home-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 72px;
  border: 1px solid var(--line);
  background: var(--line);
}

.home-links a {
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.home-links a:hover {
  background: var(--ink);
  color: white;
}

@media (max-width: 840px) {
  .site-nav,
  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    border-radius: 8px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 46px;
  }

  .hero-minimal {
    padding-top: 58px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .home-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .nav-links a {
    flex: 1 1 auto;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 14vw, 4.2rem);
  }

  .page-title {
    font-size: clamp(2.25rem, 11vw, 3.55rem);
  }

  .home-links {
    grid-template-columns: 1fr;
  }
}