:root {
  color-scheme: light;
  --paper: #f7f2e7;
  --ink: #202c29;
  --sea: #1b3537;
  --soft: #d3dfd7;
  --rule: #cecfc2;
  --seal: #9c442e;
  --serif: Iowan Old Style, Baskerville, Georgia, serif;
  --sans: system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.frame { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.skip { position: absolute; z-index: 3; left: 1rem; top: .75rem; padding: .5rem 1rem; background: var(--paper); transform: translateY(-160%); }
.skip:focus { transform: none; }
header { border-bottom: 1px solid var(--rule); }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding-block: .9rem; }
.brand { display: inline-flex; gap: .65rem; align-items: center; text-decoration: none; font-family: var(--serif); font-size: 1.25rem; }
.brand img { width: 2rem; height: 2rem; }
.language, .footer { font-size: .9rem; }
.language { min-height: 2.75rem; display: inline-flex; align-items: center; }
h1, h2, p, figure, blockquote { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
.cover { background: var(--sea); color: var(--paper); }
.cover-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.22fr); align-items: center; gap: clamp(1.75rem, 5vw, 5rem); padding-block: clamp(2.4rem, 6vw, 5rem); }
.cover h1 { font-size: clamp(3.75rem, 8vw, 7.5rem); line-height: .96; letter-spacing: -.055em; }
.cover p { margin-top: .9rem; color: var(--soft); }
.cover .status { display: inline-block; margin-bottom: 1rem; border-bottom: 1px solid currentColor; color: var(--soft); font-size: .9rem; }
.cover figure img { width: 100%; height: auto; }
.cover figcaption { margin-top: .5rem; color: var(--soft); font-size: .9rem; }
.languages { display: grid; gap: .6rem; margin-top: 1.65rem; width: min(100%, 22rem); }
.languages a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--soft); padding: .6rem .9rem; text-decoration: none; }
.languages a strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; }
.languages a span { color: var(--soft); font-size: .9rem; }
.languages a:hover { background: #2a484a; }
.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.reading { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 1.5rem 3rem; border-bottom: 1px solid var(--rule); }
.section h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; letter-spacing: -.03em; }
.reading p { margin-top: .75rem; max-width: 29ch; }
blockquote { border-inline-start: 2px solid var(--seal); padding-inline-start: clamp(1rem, 2.7vw, 2rem); font: clamp(1.55rem, 3vw, 2.55rem)/1.23 var(--serif); max-width: 32ch; }
.gallery h2 { margin-bottom: 1.5rem; }
.motifs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .85rem; }
.motifs img { background: #e9e5d7; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; padding: .65rem; }
.motifs figcaption { padding-block: .5rem; font-size: .92rem; }
footer { border-top: 1px solid var(--rule); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1.5rem; padding-block: 1rem; }

@media (max-width: 46rem) {
  .frame { width: calc(100% - 2rem); }
  .cover-grid, .reading { grid-template-columns: 1fr; }
  .cover-grid { gap: 1.5rem; }
  .cover h1 { font-size: clamp(3.4rem, 15vw, 6rem); }
  .motifs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .motifs figure:nth-child(3) { grid-column: 1 / -1; }
  .motifs figure:nth-child(3) img { aspect-ratio: 3 / 2; }
}
