:root {
  color-scheme: light;
  --canvas: #f7f4ed;
  --paper: #eeebe1;
  --ink: #202a23;
  --muted: #4e5a51;
  --forest: #202c24;
  --light: #faf4e5;
  --gold: #d7bd85;
  --line: #c9c8b9;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--canvas);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .26em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
img { display: block; width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(2.95rem, 6vw, 6.2rem); line-height: .96; letter-spacing: -.065em; }
h2 { font-size: clamp(2.35rem, 5vw, 4.25rem); line-height: 1.03; letter-spacing: -.053em; }
h3 { font-size: clamp(1.7rem, 2.6vw, 2.55rem); line-height: 1.04; letter-spacing: -.04em; }
p { line-height: 1.63; }
.wrap { width: min(100% - 88px, 1300px); margin-inline: auto; }
.skip { position: absolute; z-index: 4; left: 12px; top: 12px; background: white; padding: 12px; transform: translateY(-160%); }
.skip:focus { transform: none; }
header { background: var(--canvas); border-bottom: 1px solid var(--line); }
.bar { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.wordmark { display: inline-flex; gap: 11px; align-items: center; font-family: var(--serif); font-weight: bold; font-size: 1.08rem; text-decoration: none; white-space: nowrap; letter-spacing: .075em; }
.mark { display: inline-grid; place-items: center; border: 1px solid currentColor; width: 28px; height: 34px; font-size: .73rem; letter-spacing: -.09em; line-height: 1; }
nav { display: flex; align-items: center; gap: 28px; font-size: .86rem; }
nav a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.language { border-left: 1px solid var(--line); padding-left: 20px; font-size: .75rem; font-weight: bold; letter-spacing: .08em; }
.hero { background: var(--forest); color: var(--light); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr); align-items: stretch; min-height: min(570px, 61vw); }
.hero-copy { padding: clamp(55px, 8vw, 110px) clamp(26px, 5vw, 80px) clamp(55px, 8vw, 110px) 0; align-self: center; }
.hero h1 em { font-weight: 400; color: var(--gold); }
.hero-copy p { margin-top: 24px; color: #e3e1d6; max-width: 36ch; font-size: clamp(1rem, 1.45vw, 1.12rem); }
.hero-visual { position: relative; min-width: 0; overflow: hidden; background: radial-gradient(ellipse at 68% 47%, #5b6142, #19261d 70%); }
.hero-visual img { height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #202c2438, transparent 35%); pointer-events: none; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 48px; padding: 10px 15px; border: 1px solid currentColor; text-decoration: none; font-size: .86rem; font-weight: bold; }
.hero .button { margin-top: 30px; color: var(--light); }
.hero .button:hover { background: var(--light); color: var(--forest); }
.button:hover { background: var(--forest); color: var(--light); border-color: var(--forest); }
.catalogue { padding-block: clamp(54px, 8vw, 100px); }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.section-intro p { color: var(--muted); max-width: 40ch; }
.titles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 55px); margin-top: 23px; }
.book-image { min-height: clamp(250px, 29vw, 380px); display: grid; place-items: center; overflow: hidden; }
.case-art { background: radial-gradient(ellipse at 48% 48%, #69725a, #3c493d 75%); }
.lisbon-art { background: radial-gradient(ellipse at 54% 43%, #af906e, #75564a 76%); }
.lisbon-art.with-image { background-size: cover; background-position: center 39%; }
.cover { display: flex; flex-direction: column; justify-content: center; align-items: center; width: clamp(145px, 20vw, 222px); aspect-ratio: 2 / 2.85; padding: 14px; text-align: center; position: relative; line-height: 1.05; box-shadow: 10px 15px 25px #151b1680, inset 7px 0 9px #1118117a; }
.cover::after { content: ''; position: absolute; inset: 8px 8px 8px 13px; border: 1px solid currentColor; opacity: .46; pointer-events: none; }
.cover strong { font-family: var(--serif); font-size: clamp(1.17rem, 2.45vw, 2.05rem); font-weight: normal; }
.cover small { margin-top: 10px; font-family: var(--sans); font-size: clamp(.49rem, .75vw, .65rem); letter-spacing: .12em; text-transform: uppercase; }
.cover .symbol { font-family: var(--serif); font-size: clamp(1.4rem, 3.3vw, 3rem); margin-bottom: 11px; }
.cover-case { background: linear-gradient(135deg, #293a2c, #1d2723); color: #f1d4a0; transform: rotate(-6deg); }
.cover-lisbon { background: linear-gradient(147deg, #683c36, #3d292d); color: #f5dfb0; transform: rotate(5deg); }
.book-info { padding-top: 20px; }
.genre { color: var(--muted); font-size: .73rem; font-weight: bold; text-transform: uppercase; letter-spacing: .105em; line-height: 1.35; margin-bottom: 9px; }
.byline { color: var(--muted); margin-top: 8px; }
.description { max-width: 54ch; margin-top: 11px; }
.inline-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: bold; font-size: .9rem; }
.book-info .inline-link { margin-top: 7px; }
details { margin-top: 12px; border-top: 1px solid var(--line); }
summary { display: list-item; cursor: pointer; min-height: 44px; padding-block: 12px; font-size: .9rem; font-weight: bold; }
summary:hover { text-decoration: underline; }
.editions { margin: 0 0 10px; padding-left: 19px; font-size: .9rem; line-height: 1.65; }
.reader { background: var(--paper); border-block: 1px solid var(--line); padding-block: clamp(40px, 6vw, 75px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.reader p, .press p { max-width: 50ch; }
.reader .button { margin-top: 15px; }
.press { padding-block: clamp(50px, 7vw, 90px); }
footer { background: var(--forest); color: var(--light); border-top: 1px solid #49584c; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 25px; }
.footer-inner p { font-size: .79rem; color: #e1dfd2; }
#books, #readers, #press { scroll-margin-top: 20px; }
@media (max-width: 860px) {
  .wrap { width: calc(100% - 52px); }
  nav { gap: 16px; }
  .language { padding-left: 13px; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 36px); }
  .bar { flex-wrap: wrap; gap: 0 12px; padding-top: 12px; }
  .bar .wordmark { min-height: 44px; }
  nav { width: 100%; justify-content: space-between; gap: 6px; }
  nav a { font-size: .8rem; }
  .hero-inner, .titles, .split { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 45px 0 38px; }
  .hero-visual { aspect-ratio: 1.6; margin-bottom: 18px; }
  .section-intro { display: block; }
  .section-intro p { margin-top: 8px; }
  .titles { gap: 33px; }
  .book-image { min-height: 265px; }
  .footer-inner { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
