* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #ab7524; outline-offset: 3px; }
.symbols { display: none; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.eyebrow { font: 600 11px/1.45 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
#games { scroll-margin-top: 20px; }
.feature { --heading-color: #fffdf4; display: grid; grid-template-columns: 1.08fr 1fr; border-radius: 13px; overflow: hidden; background: #25413a; color: var(--heading-color); }
.feature-copy { padding: clamp(28px, 4vw, 52px); align-self: center; }
.feature-label { display: inline-flex; align-items: center; gap: 8px; color: #d6dfc4; }
.feature-label .icon { width: 17px; }
.feature h2 { margin: 13px 0 10px -.025em; font-size: clamp(47px, 5.1vw, 70px); letter-spacing: -.055em; line-height: 1.06; }
.feature-copy p { max-width: 39ch; color: #e3e9de; line-height: 1.58; }
.actions { margin-top: 25px; display: flex; gap: 9px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 44px; padding: 10px 15px; border-radius: 6px; text-decoration: none; font-size: 14px; font-weight: 600; }
.primary { background: #f2ecd9; color: #233a31; }
.primary:hover { background: white; }
.secondary { border: 1px solid #83998a; }
.secondary:hover { background: #38564a; }
.feature a:focus-visible { outline-color: #ffda8c; }
.specimens {
  display: grid; place-items: center; position: relative; overflow: hidden; min-height: 310px;
  background-color: #cdd4b9;
  background-image: url("./rank-practice/contours.svg"), linear-gradient(32deg, #d9dcc4, #aab998);
  background-size: cover;
}
.specimens::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to right, #46593c17 1px, transparent 1px), linear-gradient(to bottom, #46593c17 1px, transparent 1px);
  background-size: 27px 27px;
}
.deck-scene { position: relative; width: 310px; height: 260px; }
.specimen-card { position: absolute; width: 151px; border: 1px solid #d8d3b9; padding: 9px 9px 7px; background: #f9f5e6; border-radius: 7px; box-shadow: 2px 4px 3px #28322528, 5px 11px 16px #30382d40; color: #28382e; text-align: center; }
.specimen-card.back { left: 141px; top: 18px; transform: rotate(13deg); }
.specimen-card.front { left: 23px; top: 52px; transform: rotate(-10deg); }
.specimen-card > span { display: block; margin-top: 4px; font: 400 19px/1.3 var(--serif); }
.card-face { min-height: 142px; display: grid; place-items: center; border: 1px solid #d5d6bf; background: #e6e8d7; border-radius: 3px; }
.swatch {
  display: grid; place-items: center; width: 73px; height: 105px; padding: 4px; border: 2px solid #475038; border-radius: 3px;
  outline: 1px dashed #90926c; outline-offset: -5px; box-shadow: 2px 3px 3px #27322241;
  background-color: #535e42;
  background-image: repeating-linear-gradient(0deg, #2d332730 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, #2d332731 0 1px, transparent 1px 3px);
}
.swatch svg { width: 100%; height: 100%; }
.section-title { font-size: 31px; letter-spacing: -.045em; line-height: 1.15; margin: 34px 0 14px; }
.resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.resource { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 16px; text-decoration: none; border: 1px solid var(--rule); border-radius: 10px; background: #fefdf9; padding: 24px; }
.resource:hover { border-color: #879b82; background: #f3f3e9; }
.resource-icon { display: grid; place-items: center; width: 42px; height: 46px; border: 1px solid #c9d3bc; border-radius: 6px; color: #496546; background: #e6ebdd; }
.resource-icon .icon { width: 26px; height: 26px; stroke-width: 1.35; }
.alphabet-icon { background: #f1e9d9; border-color: #dbceb9; color: #775b3c; }
.resource h3 { margin: 3px 0 5px; font-size: 28px; line-height: 1.09; letter-spacing: -.045em; }
.resource p { color: var(--text); font-size: 15px; }
.outward { width: 15px; height: 15px; color: #586858; }
.map-resource { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr) minmax(120px, 24%) auto; align-items: center; }
.map-resource p { max-width: 52ch; }
.map-preview { width: 100%; height: 84px; border: 1px solid var(--rule); border-radius: 5px; }
@media (max-width: 840px) {
  .feature { grid-template-columns: 1.18fr 1fr; }
  .feature-copy { padding: 28px; }
  .resource { padding: 16px; gap: 11px; }
}
@media (max-width: 660px) {
  .feature { grid-template-columns: 1fr; }
  .feature-copy { padding: 24px; }
  .feature h2 { margin-top: 8px; }
  .actions { margin-top: 18px; }
  .specimens { min-height: 188px; }
  .deck-scene { position: absolute; transform: scale(.68); }
  .resources { grid-template-columns: 1fr; gap: 10px; }
  .map-resource { grid-template-columns: auto 1fr auto; align-items: start; }
  .map-preview { display: none; }
  .section-title { margin: 23px 0 12px; }
}
@media (max-width: 380px) {
  .feature-copy { padding: 20px; }
  .button { padding-inline: 11px; }
  .actions { gap: 7px; }
}
