:root {
  color-scheme: light;
  --ink: #222923;
  --muted: #555f57;
  --green: #235942;
  --rule: #d7ded7;
  --paper: #fcfdf9;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.05rem/1.62 system-ui, sans-serif; }
.wrap { max-width: 62rem; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.75rem); }
header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 2rem; padding-block: 1.7rem 1.25rem; border-bottom: 1px solid var(--rule); }
a { color: var(--green); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.brand { color: var(--ink); font: bold 1.55rem/1.3 var(--serif); letter-spacing: -.045em; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1.35rem; font-size: .95rem; }
nav a { text-decoration: none; }
nav a:hover, nav [aria-current] { text-decoration: underline; }
main { padding-block: clamp(2.2rem, 6vw, 4.6rem); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; }
h1 { font-size: clamp(2.7rem, 5.7vw, 4.3rem); font-weight: normal; letter-spacing: -.055em; margin: 0 0 1rem; }
h2 { font-size: 2rem; font-weight: normal; letter-spacing: -.035em; margin: 2rem 0 .8rem; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
.intro { display: grid; grid-template-columns: 1.05fr 1fr; align-items: start; gap: clamp(1.5rem, 4vw, 3.75rem); }
figure { margin: 0; }
figure img { width: 100%; height: auto; aspect-ratio: 1.08; object-fit: cover; display: block; }
figcaption { font-size: .825rem; color: var(--muted); margin-top: .55rem; }
figcaption a { color: inherit; }
.lead { font: 1.38rem/1.45 var(--serif); max-width: 47ch; }
.index { border-top: 1px solid var(--rule); margin-top: 2.8rem; }
.index h2 { margin: 1.6rem 0 .6rem; }
.entry { display: grid; grid-template-columns: minmax(14rem, .9fr) 1.3fr; gap: 1.5rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.entry a { font: 1.35rem/1.3 var(--serif); }
.entry span { color: var(--muted); font-size: .96rem; }
.reading { max-width: 43rem; }
.reading section { border-top: 1px solid var(--rule); margin-top: 2rem; }
table { border-collapse: collapse; width: 100%; margin: 1.1rem 0; }
th, td { text-align: left; border-bottom: 1px solid var(--rule); padding: .45rem .4rem; }
details { margin: .8rem 0; }
summary { cursor: pointer; color: var(--green); text-decoration: underline; text-underline-offset: .2em; }
details p { margin: .45rem 0; }
dt { font: bold 1.35rem var(--serif); margin-top: 1.6rem; }
dd { margin: .3rem 0 0; }
.skip { position: absolute; left: -100vw; background: white; padding: .5rem; }
.skip:focus { left: 1rem; }
@media (max-width: 43rem) {
  .intro, .entry { grid-template-columns: 1fr; }
  .intro { gap: 1.3rem; }
  figure img { aspect-ratio: auto; height: auto; }
  .entry { gap: .2rem; }
  header { padding-top: 1rem; }
}
input, button { font: inherit; }
form label { display: block; margin: 1.25rem 0 .35rem; font-weight: 600; }
.search-row { display: flex; }
.search-row input { flex: 1; min-width: 0; border: 1px solid #838d83; padding: .65rem .75rem; background: white; border-radius: .2rem 0 0 .2rem; }
button { cursor: pointer; border: 1px solid var(--green); background: var(--green); color: white; padding: .55rem .85rem; border-radius: .2rem; }
.search-row button { border-radius: 0 .2rem .2rem 0; }
#common { margin: 1.1rem 0 0; }
#status { color: var(--muted); }
#status:empty { margin: 0; }
#hero { margin-bottom: 1.5rem; }
#hero.compact { display: block; max-width: 42rem; }
.compact h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
.compact figure, .compact #common { display: none; }
.alphabet, .quick-links { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: .5rem 0 1.3rem; }
.alphabet a { min-width: 1.3rem; text-align: center; }
[aria-current="true"] { font-weight: 700; }
.verb-list { columns: 3 11rem; padding-left: 1.3rem; }
.verb-list li { break-inside: avoid; overflow-wrap: anywhere; }
#suggestions:not(:empty) { padding-top: .6rem; }
#suggestions a { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#hero > div { min-width: 0; }
.search-results, .definitions { max-width: 72ch; padding-left: 1.5rem; }
.search-results li { margin-bottom: .6rem; }
.verb-title { font-size: clamp(2.5rem, 6vw, 4rem); margin: 1.4rem 0 .5rem; overflow-wrap: anywhere; }
.mood { margin: 2rem 0; border-top: 1px solid var(--rule); }
.mood h3 { margin: 1.2rem 0; font-size: 1.75rem; }
.tenses { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 18rem),1fr)); gap: .75rem 2.5rem; }
.tenses table { align-self: start; margin: .35rem 0 .9rem; }
caption { font-weight: 650; text-align: left; }
.tenses th { font-weight: normal; font-size: .9rem; color: var(--muted); width: 5rem; }
.tenses td { overflow-wrap: anywhere; }

.tenses th small { display: block; font-size: .82rem; }

.tense-help { display: block; position: relative; }
.tense-help button {
  background: transparent; color: var(--green); border: 0; padding: .15rem 0;
  font: inherit; text-align: left; text-decoration: underline dotted;
  text-underline-offset: .22em; cursor: help;
}
.tense-tip {
  position: absolute; z-index: 2; top: 100%; left: 0;
  width: min(20rem, 100%); padding: .75rem .9rem;
  background: var(--paper); color: var(--ink); border: 1px solid var(--green);
  box-shadow: 0 .2rem .65rem #0002; border-radius: .2rem;
  text-align: left; font-size: .95rem; line-height: 1.45; font-weight: normal;
}
.tense-tip i { display: block; margin-top: .45rem; }

.quick-links .tense-tip { width: min(20rem, calc(100vw - 2rem)); }

.tenses tr:target, .tenses .selected-form { background: #e4eee2; }
.tenses tr { scroll-margin-top: 1rem; }
