:root {
  color-scheme: dark;
  --paper: #f6f3e9;
  --mint: #b8ebc8;
  --ink: #0e1714;
  --line: #35413b;
  --serif: "Baskervville", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 100%;
  background: var(--ink);
  color: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; background: radial-gradient(ellipse at 60% 20%, #17251f 0%, transparent 58%); }
.frame { width: min(100% - clamp(2rem, 9vw, 9rem), 76rem); margin-inline: auto; }
header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.4rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .7rem; white-space: nowrap; }
.spines { display: inline-flex; align-items: end; height: 1.4rem; gap: 3px; }
.spines i { display: block; height: 86%; width: 3px; background: var(--mint); border-radius: 1px; }
.spines i:nth-child(2) { height: 100%; }
.spines i:last-child { transform: rotate(-17deg); transform-origin: bottom; margin-left: 4px; }
.brand b { letter-spacing: .11em; font-size: .88rem; }
.brand em { font-family: var(--serif); font-size: 1.17rem; line-height: 1; margin-left: .34rem; }
.languages { display: flex; align-items: center; }
.languages a { display: grid; place-items: center; min-height: 44px; min-width: 37px; font-size: .875rem; color: #c0c9c3; text-decoration: none; }
.languages span { border-bottom: 1px solid transparent; padding-block: .2rem; }
.languages a[aria-current] { color: var(--mint); }
.languages a[aria-current] span { border-color: var(--mint); }
h1, h2, p { margin: 0; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 6.3vw, 5.45rem); letter-spacing: -.054em; line-height: 1.06; margin: clamp(1.8rem, 5vw, 4rem) 0 clamp(1.4rem, 3vw, 2.4rem); text-wrap: balance; }
.shelves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.85rem, 1.8vw, 1.5rem); }
.shelf { display: flex; position: relative; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; min-height: clamp(24rem, 55vh, 34rem); text-decoration: none; color: #fffaf0; border: 1px solid #526257; border-radius: .35rem; padding: clamp(1.15rem, 2.6vw, 2.25rem); background: #152a23; }
.shelf img { position: absolute; z-index: -3; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: 64% center; transition: transform .4s ease; }
.shelf.practice { background: #2d251b; border-color: #675d4e; }
.shelf.practice img { object-position: 59% center; }
.shelf::after { content: ""; position: absolute; z-index: -2; inset: 0; background: linear-gradient(0deg, rgba(5,14,11,.99) 1%, rgba(5,14,11,.83) 24%, rgba(5,14,11,.15) 68%); }
.shelf.practice::after { background: linear-gradient(0deg, rgba(18,14,11,.99) 1%, rgba(18,14,11,.84) 24%, rgba(18,14,11,.12) 68%); }
.kind { color: #c1ebd1; font-size: .875rem; text-transform: uppercase; letter-spacing: .13em; font-weight: bold; }
.practice .kind { color: #f4d1a5; }
h2 { font-family: var(--serif); font-size: clamp(2.1rem, 3.9vw, 3.65rem); font-weight: 400; line-height: 1.08; letter-spacing: -.05em; margin-block: .55rem .47rem; }
.desc { font-size: 1rem; max-width: 34ch; line-height: 1.45; color: #e7e6db; text-wrap: pretty; }
.action { align-self: flex-start; font-size: .9375rem; font-weight: 650; border-bottom: 1px solid currentColor; padding-bottom: .14rem; margin-top: 1.22rem; }
a:focus-visible { outline: 3px solid #d2f4b9; outline-offset: 3px; }
@media (hover:hover) { .shelf:hover img { transform: scale(1.033); } .shelf:hover .action { color: #d4f5db; } .languages a:hover { color: white; } }
footer { border-top: 1px solid var(--line); margin-top: clamp(1.4rem, 3.6vw, 3rem); padding: 1.1rem 0 2rem; font-size: .8125rem; line-height: 1.65; color: #b0bbb4; }
footer strong { font-weight: 650; color: #d2dad4; }
footer a { color: inherit; }
@media(max-width: 670px) {
  .frame { width: calc(100% - 2rem); }
  header { min-height: 3.5rem; }
  h1 { margin: 1.28rem 0 1.1rem; font-size: clamp(2.4rem, 9.4vw, 3.4rem); }
  .shelves { grid-template-columns: 1fr; }
  .shelf { min-height: clamp(14.5rem, 31svh, 19rem); }
  .shelf img { object-position: 68% 42%; }
  .shelf.practice img { object-position: 62% 48%; }
  .action { margin-top: .85rem; }
  footer { margin-top: 1.45rem; }
}
@media(prefers-reduced-motion: reduce) { .shelf img { transition: none; } }
