/* Computer Modern (CMU) — SIL Open Font License, ver fonts/OFL.txt */
@font-face { font-family: "CMU Serif"; src: url("fonts/cmu-serif-500-roman.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "CMU Serif"; src: url("fonts/cmu-serif-500-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "CMU Serif"; src: url("fonts/cmu-serif-700-roman.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "CMU Typewriter"; src: url("fonts/cmu-typewriter-text-500-roman.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --bg: #121417;
  --panel: #1a1d21;
  --line: #2b2f35;
  --ink: #e8e6e1;
  --ink-2: #b4b1aa;
  --ink-3: #7d7a75;
  --link: #9ab8d8;
  --serif: "CMU Serif", "Latin Modern Roman", "Computer Modern", Georgia, serif;
  --mono: "CMU Typewriter", "Latin Modern Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); font: 400 18px/1.55 var(--serif); overflow-x: hidden;
  /* Céu: um brilho violeta suave no alto que se dissolve no escuro. */
  background:
    radial-gradient(130% 70% at 50% -12%, rgba(124, 88, 200, .40) 0%, rgba(80, 56, 140, .18) 40%, transparent 72%),
    radial-gradient(60% 45% at 88% 0%, rgba(186, 100, 176, .16) 0%, transparent 62%),
    radial-gradient(70% 40% at 10% 100%, rgba(90, 70, 160, .10) 0%, transparent 70%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, select { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- topo ---------- */
.top { display: flex; align-items: center; gap: 28px; padding: 14px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); border-bottom: 1px solid var(--line); background: transparent; }
.brand { color: var(--ink); font-size: 20px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.top-nav { display: flex; gap: 20px; flex: 1; }
.top-nav a { color: var(--ink-2); font-size: 16px; }
.top-nav a[aria-current="page"] { color: var(--ink); }
.top-opts { display: flex; gap: 8px; align-items: center; }
select, .lang { background: var(--panel); border: 1px solid var(--line); border-radius: 3px; padding: 5px 8px; font: 400 13px var(--mono); color: var(--ink-2); }
.lang { cursor: pointer; }

/* ---------- capa ---------- */
.intro { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 44px); }
.intro h1 { font-weight: 400; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.15; margin: 0 0 14px; max-width: 22ch; }
.intro p { color: var(--ink-2); margin: 0; max-width: 60ch; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 22px; padding: 0; list-style: none; font: 400 13px var(--mono); color: var(--ink-3); }

/* ---------- galeria ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; padding-bottom: 72px; }
.item { color: var(--ink); display: block; }
.loading { grid-column: 1 / -1; color: var(--ink-3); font: 400 14px var(--mono); }
.item:hover { text-decoration: none; }
.item:hover .item-title { text-decoration: underline; text-underline-offset: 3px; }
.thumb { aspect-ratio: 4 / 3; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.cap { padding-top: 10px; }
.fig { font: 400 12px var(--mono); color: var(--ink-3); }
.item-title { font-size: 19px; line-height: 1.25; margin: 2px 0 2px; font-weight: 400; }
.item-line { display: flex; justify-content: space-between; gap: 12px; font: 400 12.5px var(--mono); color: var(--ink-3); }
.item-line .price { color: var(--ink-2); white-space: nowrap; }

/* ---------- página da print ---------- */
.crumbs { font: 400 13px var(--mono); color: var(--ink-3); padding: 22px 0; }
.crumbs a { color: var(--ink-3); }
.print { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: clamp(24px, 4vw, 56px); padding-bottom: 72px; }
.plate { margin: 0; }
.plate-img { background: var(--panel); border: 1px solid var(--line); align-self: start; }
.plate-img img { width: 100%; height: auto; }
.plate-img.mock { margin-top: 24px; }
.plate-cap { font: 400 12.5px var(--mono); color: var(--ink-3); padding: 10px 0 0; }
.print h1 { font-weight: 400; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; margin: 0; }
.print .sub { font-style: italic; color: var(--ink-2); margin: 6px 0 18px; }
.print .story { color: var(--ink-2); margin: 0 0 26px; font-size: 17px; }
h2.sec { font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
dl.acq { margin: 0 0 28px; font-size: 15px; }
dl.acq div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 5px 0; border-bottom: 1px dotted var(--line); }
dl.acq dt { color: var(--ink-3); }
dl.acq dd { margin: 0; font-family: var(--mono); font-size: 13.5px; padding-top: 2px; }

.sizes { margin: 0 0 18px; padding: 0; border: 0; }
.size { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dotted var(--line); cursor: pointer; font-size: 16px; }
.size input { accent-color: var(--ink); margin: 0; }
.size .lbl { flex: 1; }
.size .lbl small { color: var(--ink-3); font: 400 12px var(--mono); margin-left: 6px; }
.size .amt { font: 400 14px var(--mono); }
.size.off { color: var(--ink-3); cursor: default; }
.br-text { color: var(--ink-2); font-size: 16px; margin: 0 0 16px; }
a.buy { text-align: center; text-decoration: none; }
.buy { display: block; width: 100%; margin-top: 6px; padding: 12px; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); border-radius: 3px; font: 400 17px var(--serif); cursor: pointer; }
.buy:disabled { background: transparent; color: var(--ink-3); border-color: var(--line); cursor: default; }
.msg { font: 400 13px var(--mono); color: #d9a07a; margin: 10px 0 0; min-height: 1em; }
.notes { margin: 22px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--ink-3); }
.notes li { padding: 3px 0; }
.size-details { font: 400 13px var(--mono); color: var(--ink-2); margin: 0 0 14px; }
.region-note { font-size: 14.5px; color: var(--ink-3); margin: 0 0 14px; }
.region-note button { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font-size: inherit; }

/* ---------- blog ---------- */
.posts { padding-bottom: 72px; }
.post-row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.post-row:hover { text-decoration: none; }
.post-row:hover .post-title { text-decoration: underline; text-underline-offset: 3px; }
.post-thumb { aspect-ratio: 4 / 3; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-meta { font: 400 12.5px var(--mono); color: var(--ink-3); }
.post-title { font-weight: 400; font-size: 23px; line-height: 1.25; margin: 4px 0 6px; }
.post-sum { color: var(--ink-2); margin: 0; font-size: 16px; }
.post { max-width: 68ch; padding-bottom: 80px; }
.post h1 { font-weight: 400; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 6px 0 12px; }
.post-lede { font-style: italic; color: var(--ink-2); margin: 0 0 24px; }
.post-hero { margin: 0 0 28px; border: 1px solid var(--line); background: var(--panel); }
.post-hero img { width: 100%; max-height: 560px; object-fit: cover; }
.post-body { font-size: 18px; line-height: 1.7; }
.post-body p { margin: 0 0 1.1em; }
.post-body h2, .post-body h3, .post-body h4 { font-weight: 700; font-size: 21px; line-height: 1.3; margin: 1.8em 0 .6em; }
.post-body h4 { font-size: 18px; }
.post-body ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.post-body li { margin-bottom: .6em; }
.post-body a { text-decoration: underline; text-decoration-color: #4b5d73; text-underline-offset: 3px; }
.post-body a:hover { text-decoration-color: var(--link); }
.disclosure { font-size: 14px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 36px; }

/* ---------- páginas de texto ---------- */
.prose { max-width: 62ch; padding: 48px 0 80px; }
.prose h1 { font-weight: 400; font-size: 36px; margin: 0 0 18px; }
.prose p { color: var(--ink-2); }

/* ---------- rodapé ---------- */
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); border-top: 1px solid var(--line); font: 400 13px var(--mono); color: var(--ink-3); }
.foot-links { display: flex; gap: 18px; }
.foot a { color: var(--ink-3); }
.foot a:hover { color: var(--ink); }

@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .print { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .top { flex-wrap: wrap; gap: 10px 18px; }
  .top-nav { order: 3; flex-basis: 100%; }
  .top-opts { margin-left: auto; }
  .brand { font-size: 18px; }
  select { max-width: 132px; }
  .grid { grid-template-columns: 1fr; }
  .post-row { grid-template-columns: 1fr; gap: 12px; }
  .top-nav { gap: 16px; flex-wrap: wrap; }
  dl.acq div { grid-template-columns: 8em 1fr; }
}
