@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/eb-garamond-v32-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/eb-garamond-v32-latin-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/eb-garamond-v32-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/libre-baskerville-v24-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/libre-baskerville-v24-latin-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/libre-baskerville-v24-latin-700.woff2') format('woff2');
}

:root {
  --bg:         #082B00;
  --mid:        #009308;
  --fg:         #008220;
  --text:       #c8f0c0;
  --text-dim:   #88bb80;
  --text-muted: #5a8855;
  --mono:       'Cascadia Code', 'Cascadia Mono', 'Fira Code', monospace;
  --serif:      'EB Garamond', 'Libre Baskerville', Georgia, serif;
}

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

html, body {
  height: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 3rem 1.5rem;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(0,147,8,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0,130,32,0.06) 0%, transparent 50%);
}

.entry {
  max-width: 620px;
  width: 100%;
  opacity: 0;
  animation: fadein 0.7s ease forwards;
}

@keyframes fadein {
  to { opacity: 1; }
}

.headword {
  font-family: var(--serif);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 400;
  color: #008220;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 0.15em;
}

.pronunciation {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 1.6rem;
}

.pronunciation a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
}

.pronunciation a:hover {
  color: var(--text-dim);
  border-color: var(--text-dim);
}

.rule {
  border: none;
  border-top: 1px solid var(--text-muted);
  opacity: 0.35;
  margin-bottom: 1.6rem;
}

.pos {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.definition {
  font-family: var(--mono);
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 2.4rem;
}

.section {
  margin-bottom: 1.8rem;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.section-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.section-items li {
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--text-dim);
  padding-left: 1.1em;
  position: relative;
}

.section-items li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.section-items a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.section-items a:hover {
  color: var(--text);
  border-bottom-color: var(--text-dim);
}

.footer {
  margin-top: 3rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0.5;
  letter-spacing: 0.05em;
}