@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --ink: #17212a;
  --paper: #f2f6f7;
  --muted: #707c81;
  --line: #dae3e6;
  --cyan: #57d7f5;
  --green: #236d87;
  --mono: "DM Mono", "Courier New", monospace;
  --sans: "DM Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.65; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #28bce5; outline-offset: 4px; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.site-header { position: absolute; z-index: 2; top: 0; right: 0; left: 0; color: #f4f3ed; }
.header-inner, .main-nav, .brand { display: flex; align-items: center; }
.header-inner { min-height: 78px; justify-content: space-between; border-bottom: 1px solid #ffffff20; }
.brand { gap: 10px; color: inherit; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; }
.brand-mark { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid #ffffff62; border-radius: 50%; font-size: 1rem; letter-spacing: -.08em; }
.brand-mark span { color: var(--cyan); }
.brand-light { margin-left: 4px; color: #a8a99f; font-weight: 500; }
.main-nav { gap: 32px; font-size: .83rem; }
.main-nav a { color: #d0d0c9; text-decoration: none; transition: color .2s ease; }
.main-nav a:hover { color: var(--cyan); }
.main-nav .nav-contact { padding: 8px 13px; border: 1px solid #ffffff42; border-radius: 3px; color: #fff; }
.nav-contact span { margin-left: 6px; color: var(--cyan); }
.main-nav .language-toggle { min-width: 39px; padding: 6px 8px; border: 1px solid #57d7f588; border-radius: 3px; background: #57d7f510; color: var(--cyan); cursor: pointer; font: 500 .7rem var(--mono); transition: background .2s ease, color .2s ease; }
.main-nav .language-toggle:hover { background: var(--cyan); color: #10212a; }
.main-nav .language-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
/* Os quatro idiomas ficam num grupo so: o nav da 32px entre itens, mas as opcoes
   entre si precisam de um vao proprio, senao o grupo inteiro parece um so botao. */
.language-switch { display: inline-flex; gap: 5px; }
.eyebrow { margin: 0; color: var(--cyan); font: 500 .7rem/1.6 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.eyebrow-dark { color: #247c98; }
h2 { margin: 10px 0 0; font-size: clamp(2.1rem, 4vw, 3.25rem); font-weight: 600; letter-spacing: -.06em; line-height: 1.1; }
.heading-period { color: #229ac0; }
.section-pad { padding: 105px 0; }
.section-intro { max-width: 345px; margin: 0 0 5px; color: var(--muted); font-size: .9rem; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 14px; padding: 10px 16px; border: 1px solid transparent; border-radius: 3px; font-size: .83rem; font-weight: 700; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--cyan); color: #10212a; }
.button-primary:hover { background: #86e8fa; }
.text-link { color: #d6d6ce; font-size: .82rem; text-decoration: none; }
.text-link span { margin-left: 5px; color: var(--cyan); }
.footer-brand { color: #f4f3ed; font-family: var(--sans); font-size: .68rem; }
.footer-brand .brand-mark { width: 29px; height: 29px; }

/* Ocarina of Time DSi page */
.oot-page { --oot-bg: #f4f1e8; --oot-paper: #fbf9f3; --oot-deep: #08140e; --oot-deep-2: #0d2016; --oot-moss: #173427; --oot-gold: #d3b26a; --oot-gold-soft: #ead9a8; --oot-cream: #f3ecdb; --oot-text: #314238; --oot-muted: #5c6b60; --oot-line: #d9ded2; background: var(--oot-bg); color: var(--oot-text); }
.oot-page .brand-mark span { color: var(--oot-gold); }
.oot-page .main-nav a:hover { color: var(--oot-gold); }
.oot-page .nav-contact span { color: var(--oot-gold); }
.oot-page .main-nav .language-toggle { border-color: #d3b26a88; background: #d3b26a10; color: var(--oot-gold); }
.oot-page .main-nav .language-toggle:hover { background: var(--oot-gold); color: #10211a; }
.oot-page .main-nav .language-toggle:focus-visible { outline-color: var(--oot-gold); }
.main-nav .language-toggle[aria-pressed="true"] { border-color: var(--oot-gold); background: var(--oot-gold); color: #10211a; }
.oot-page .button-primary { background: var(--oot-gold); color: #14200f; }
.oot-page .button-primary:hover { background: var(--oot-gold-soft); }
.oot-page .text-link { color: #d6d0bd; }
.oot-page .text-link span { color: var(--oot-gold); }
.oot-page h2 { color: #20342a; }
.oot-page .heading-period { color: var(--oot-gold); }
.oot-page .section-intro { color: var(--oot-muted); }
.oot-page .oot-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 45px; margin-bottom: 44px; }
.oot-page .oot-section-heading .eyebrow { color: #7d6a36; }
.oot-hero { position: relative; overflow: hidden; padding: 146px 0 0; background: radial-gradient(ellipse at 77% 32%, #2d523a59, transparent 48%), linear-gradient(160deg, #0a1710, #07110c 62%); color: var(--oot-cream); }
.oot-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(#d8b76a0e 1px, transparent 1px), linear-gradient(90deg, #d8b76a0e 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 70% 40%, #000, transparent 74%); }
.oot-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 44px; padding-bottom: 52px; }
.oot-breadcrumb { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; color: #c2c6b4; font-size: .76rem; text-decoration: none; }
.oot-breadcrumb span:first-child { color: var(--oot-gold); }
.oot-breadcrumb:hover { color: #fff; }
.oot-eyebrow { color: var(--oot-gold); }
.oot-hero h1 { margin: 20px 0 20px; color: var(--oot-cream); font-size: clamp(3rem, 6.4vw, 5.4rem); font-weight: 600; letter-spacing: -.075em; line-height: .96; }
.oot-hero h1 small { display: block; margin-top: 13px; color: #c8c8b6; font-size: .215em; font-weight: 500; letter-spacing: .015em; }
.oot-period { color: var(--oot-gold); }
.oot-hero-description { max-width: 520px; margin-bottom: 28px; color: #b8c1b4; font-size: 1rem; }
.oot-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.oot-hero-note { display: flex; align-items: center; gap: 9px; margin: 29px 0 0; color: #94a294; font: .57rem/1.7 var(--mono); letter-spacing: .06em; }
.oot-hero-note > span:first-child { flex: 0 0 auto; color: var(--oot-gold); }
.oot-hero-art { position: relative; display: grid; min-height: 400px; place-items: center; }
.oot-art-orbit { position: absolute; width: 330px; height: 330px; border: 1px solid #d3b26a2e; border-radius: 50%; }
.oot-art-orbit-two { width: 430px; height: 430px; border-color: #f3ecdb12; }
.oot-art-compass { position: absolute; top: 14px; right: 30px; color: var(--oot-gold); font-size: 1.7rem; }
.oot-composition { position: relative; z-index: 1; display: flex; width: min(100%, 300px); flex-direction: column; gap: 9px; padding: 14px; border: 1px solid #d3b26a52; background: #08130de6; box-shadow: 0 30px 80px #0009; transform: rotate(-1.5deg); }
.oot-comp-screen { position: relative; display: grid; gap: 6px; padding: 12px; border: 1px solid #e7d29b3d; background: linear-gradient(135deg, #12291d, #0a1710); }
.oot-comp-top { align-content: center; aspect-ratio: 4 / 3; }
.oot-comp-bottom { background: #0b1a12; }
.oot-comp-label { color: var(--oot-gold); font: .49rem var(--mono); letter-spacing: .12em; }
.oot-comp-code { color: #9db3a3; font: .51rem var(--mono); letter-spacing: .03em; }
.oot-comp-room { color: #e7d29b; font: .54rem var(--mono); letter-spacing: .02em; }
.oot-comp-wire { height: 64px; margin: 8px 0; border: 1px solid #d3b26a26; background-image: linear-gradient(#d3b26a1f 1px, transparent 1px), linear-gradient(90deg, #d3b26a1f 1px, transparent 1px); background-size: 18px 18px; }
.oot-comp-bars { display: flex; height: 25px; align-items: end; gap: 4px; }
.oot-comp-bars i { flex: 1; height: 35%; background: #d3b26a59; }
.oot-comp-bars i:nth-child(2) { height: 62%; }
.oot-comp-bars i:nth-child(3) { height: 45%; }
.oot-comp-bars i:nth-child(4) { height: 78%; }
.oot-comp-bars i:nth-child(5) { height: 55%; }
.oot-comp-bars i:nth-child(6) { height: 90%; }
.oot-art-coordinate { position: absolute; bottom: 18px; left: 6px; color: #7f8f80; font: .54rem var(--mono); letter-spacing: .05em; }
.oot-hero-footer { position: relative; z-index: 1; display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #f3ecdb1f; color: #8b9a8c; font: .56rem var(--mono); letter-spacing: .08em; }
.oot-hero-footer a { color: #d6d0bd; text-decoration: none; }
.oot-hero-footer a span { margin-left: 7px; color: var(--oot-gold); }
.oot-intro { background: var(--oot-bg); }
.oot-intro-grid { display: grid; grid-template-columns: 1.04fr .96fr; align-items: start; gap: 58px; }
.oot-intro-copy p { color: #54655a; font-size: .9rem; }
.oot-intro-copy em { color: #2f4636; font-style: normal; font-weight: 600; }
.oot-fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 30px; border: 1px solid var(--oot-line); background: var(--oot-line); }
.oot-fact { display: flex; flex-direction: column; gap: 4px; padding: 17px; background: var(--oot-paper); }
.oot-fact-value { color: #2f4636; font: 500 1.75rem/1 var(--mono); letter-spacing: -.04em; }
.oot-fact-label { color: #7d6a36; font: .54rem var(--mono); letter-spacing: .08em; }
.oot-fact-note { color: #5c6b60; font-size: .68rem; }
.oot-capture { margin: 0; }
.oot-capture a { display: block; border: 1px solid #c9c4b3; background: #0b1711; }
.oot-capture img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; }
.oot-capture figcaption { display: grid; gap: 7px; padding: 13px 2px 0; color: #5c6b60; font-size: .7rem; }
.oot-capture-tag { color: #7d6a36; font: .54rem var(--mono); letter-spacing: .08em; }
.oot-concept { max-width: 940px; margin: 46px auto 0; }
.oot-concept img { display: block; width: 100%; height: auto; border: 1px solid #7d6a3640; }
.oot-concept figcaption { display: grid; gap: 6px; padding: 12px 2px 0; color: #5c6b60; font-size: .7rem; }
.oot-concept-tag { color: #74622f; font: .54rem var(--mono); letter-spacing: .08em; }
.oot-concept-dark img { border-color: #d3b26a40; }
.oot-challenge .oot-concept figcaption { color: #a5b3a6; }
.oot-challenge .oot-concept-tag { color: var(--oot-gold); }
.oot-challenge { background: var(--oot-deep-2); color: var(--oot-cream); }
.oot-challenge .eyebrow, .oot-gallery .eyebrow, .oot-next .eyebrow { color: var(--oot-gold); }
.oot-challenge h2, .oot-gallery h2, .oot-next h2 { color: var(--oot-cream); }
.oot-challenge .section-intro, .oot-gallery .section-intro, .oot-next .section-intro { color: #a5b3a6; }
.oot-challenge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.oot-challenge-card { padding: 24px; border: 1px solid #d3b26a26; background: #0f2419; }
.oot-card-number { color: var(--oot-gold); font: .6rem var(--mono); letter-spacing: .08em; }
.oot-challenge-card h3 { margin: 30px 0 8px; color: var(--oot-cream); font-size: 1.1rem; font-weight: 600; letter-spacing: -.03em; }
.oot-challenge-card p { margin: 0; color: #a9b6aa; font-size: .8rem; }
.oot-caveat { margin: 28px 0 0; padding: 16px 19px; border-left: 3px solid var(--oot-gold); background: #f0ead9; color: #5b6a5f; font-size: .8rem; }
.oot-caveat strong { color: #2f4636; }
.oot-challenge .oot-caveat { background: #0b1a12; color: #b7c2b6; }
.oot-challenge .oot-caveat strong { color: var(--oot-gold-soft); }
.oot-state { background: var(--oot-paper); }
.oot-state-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.oot-state-column { padding: 22px; border: 1px solid var(--oot-line); background: #f7f4ec; }
.oot-state-done { border-top: 3px solid #4f7a4d; }
.oot-state-partial { border-top: 3px solid #b58a3e; }
.oot-state-missing { border-top: 3px solid #9a7a72; }
.oot-state-heading { display: flex; align-items: center; gap: 9px; }
.oot-state-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #4f7a4d; }
.oot-state-partial .oot-state-dot { background: #b58a3e; }
.oot-state-missing .oot-state-dot { background: #9a7a72; }
.oot-state-column h3 { margin: 0; color: #2f4636; font-size: .97rem; font-weight: 600; letter-spacing: -.02em; }
.oot-state-column ul { display: grid; gap: 8px; margin: 16px 0 0; padding-left: 17px; color: #5f6e63; font-size: .77rem; }
.oot-state-column li::marker { color: #a8986b; }
.oot-state-note { margin: 22px 0 0; color: #5c6b60; font-size: .73rem; }
.oot-fronts { background: #e9eee4; }
.oot-fronts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.oot-front-card { padding: 28px; border: 1px solid #cfd8c9; background: #f8faf4; }
.oot-front-tag { display: inline-block; padding: 4px 8px; border: 1px solid #d3b26a66; color: #7d6a36; font: .53rem var(--mono); letter-spacing: .04em; }
.oot-front-card h3 { margin: 20px 0 8px; color: #24382c; font-size: 1.35rem; font-weight: 600; letter-spacing: -.04em; }
.oot-front-card p { color: #65746a; font-size: .82rem; }
.oot-front-card ul { display: grid; gap: 7px; margin: 16px 0 0; padding-left: 17px; color: #55655a; font-size: .77rem; }
.oot-origins { margin-top: 44px; }
.oot-origins h3, .oot-subheading { margin: 0 0 10px; color: #24382c; font-size: 1.1rem; font-weight: 600; letter-spacing: -.03em; }
.oot-subheading { margin-top: 36px; }
.oot-table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--oot-line); background: var(--oot-paper); }
.oot-table-wrap:focus-visible { outline: 3px solid #28bce5; outline-offset: 3px; }
.oot-table-hint { display: none; margin: 0 0 8px; color: #5c6b60; font: .66rem var(--mono); letter-spacing: .02em; }
.oot-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .75rem; }
.oot-table caption { padding: 12px 14px; color: #5c6b60; font-size: .66rem; text-align: left; }
.oot-table th, .oot-table td { padding: 12px 14px; border-top: 1px solid var(--oot-line); text-align: left; vertical-align: top; }
.oot-table thead th { background: #ece8db; color: #5b5235; font: .54rem var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.oot-table tbody th { color: #2f4636; font-weight: 600; }
.oot-table tbody tr:nth-child(even) { background: #f6f3ea; }
.oot-table code { color: #4c5f43; font: .72rem var(--mono); }
.oot-small-note { margin: 18px 0 0; color: #5c6b60; font-size: .72rem; }
.oot-small-note a { color: #5c6f3b; }
.oot-studies { background: var(--oot-bg); }
.oot-studies-list { display: grid; gap: 10px; }
.oot-study { border: 1px solid var(--oot-line); background: var(--oot-paper); }
.oot-study summary { display: flex; align-items: center; gap: 16px; padding: 18px 20px; color: #24382c; cursor: pointer; font-size: .9rem; font-weight: 600; list-style: none; }
.oot-study summary::-webkit-details-marker { display: none; }
.oot-study summary::after { margin-left: auto; color: #7d6a36; content: "+"; font: 1rem var(--mono); }
.oot-study[open] summary::after { content: "−"; }
.oot-study summary:focus-visible { outline: 3px solid #28bce5; outline-offset: -3px; }
.oot-study-id { color: #7d6a36; font: .54rem var(--mono); letter-spacing: .05em; white-space: nowrap; }
.oot-study-grid { display: grid; grid-template-columns: 130px 1fr; margin: 0; padding: 2px 20px 20px; }
.oot-study-grid dt { padding: 10px 0; border-top: 1px solid #e6e2d6; color: #7d6a36; font: .54rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.oot-study-grid dd { margin: 0; padding: 10px 0 10px 16px; border-top: 1px solid #e6e2d6; color: #56665b; font-size: .78rem; }
.oot-gallery { background: var(--oot-deep); color: var(--oot-cream); }
.oot-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.oot-gallery-wide { grid-column: 1 / -1; }
.oot-gallery-item { margin: 0; padding: 10px; border: 1px solid #d3b26a24; background: #0b1a12; }
.oot-gallery-item a { display: block; background: #050c08; }
.oot-gallery-item img { display: block; width: 100%; height: 230px; object-fit: contain; }
.oot-gallery-wide img { height: min(64vw, 520px); }
.oot-gallery-item figcaption { display: grid; gap: 6px; padding: 11px 4px 3px; color: #9caa9d; font-size: .7rem; }
.oot-gallery-tag { color: var(--oot-gold); font: .51rem var(--mono); letter-spacing: .07em; }
.oot-gallery-tag span { color: #e19a7e; }
.oot-gallery .oot-small-note { color: #8b9a8c; }
.oot-gallery .oot-small-note a { color: var(--oot-gold); }
.oot-performance { background: var(--oot-paper); }
.oot-table-intro { max-width: 680px; margin: 0 0 4px; color: #5c6b60; font-size: .78rem; }
.oot-performance .oot-table-wrap { margin-top: 10px; }
.oot-history { background: #eef1e8; }
.oot-timeline { position: relative; display: grid; margin: 0; padding: 0; border-left: 1px solid #c9d0c2; list-style: none; }
.oot-timeline li { position: relative; display: grid; grid-template-columns: 92px 74px 1fr auto; align-items: start; gap: 14px; padding: 14px 0 14px 20px; border-bottom: 1px solid #d8ded1; }
.oot-timeline li::before { position: absolute; top: 22px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: #7d8a76; content: ""; }
.oot-timeline-retraction::before { background: #b58a3e; box-shadow: 0 0 0 3px #b58a3e22; }
.oot-timeline-date, .oot-timeline-id, .oot-timeline-state { color: #5c6b60; font: .54rem var(--mono); letter-spacing: .04em; }
.oot-timeline-id { color: #7d6a36; }
.oot-timeline-state { padding: 3px 6px; border: 1px solid #cbd2c5; color: #526456; }
.oot-timeline li div { display: grid; gap: 3px; }
.oot-timeline strong { color: #2f4636; font-size: .81rem; font-weight: 600; }
.oot-timeline li div span { color: #5c6b60; font-size: .73rem; }
.oot-retractions { margin-top: 52px; }
.oot-retractions h3 { margin: 0 0 8px; color: #24382c; font-size: 1.16rem; font-weight: 600; letter-spacing: -.03em; }
.oot-retraction-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.oot-retraction-card { padding: 15px; border: 1px solid #d5dbcf; background: #f8faf4; }
.oot-retraction-card .oot-gallery-tag { color: #7d6a36; }
.oot-retraction-card p { margin: 8px 0 0; color: #5f6e63; font-size: .72rem; }
.oot-retraction-card p strong { color: #7d6a36; font: .55rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.oot-next { background: var(--oot-deep-2); color: var(--oot-cream); }
.oot-next-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; margin: 0; padding: 0; border-top: 1px solid #d3b26a24; list-style: none; }
.oot-next-list li { position: relative; padding: 15px 0 15px 28px; border-bottom: 1px solid #d3b26a24; color: #b7c2b6; font-size: .79rem; }
.oot-next-list li::before { position: absolute; top: 15px; left: 2px; color: var(--oot-gold); content: "↗"; font-size: .7rem; }
.oot-credits { background: var(--oot-bg); }
.oot-credits-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.oot-credits-notes p { margin: 0; padding-left: 13px; border-left: 2px solid var(--oot-gold); color: #5c6b60; font-size: .72rem; }
.oot-contact { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; padding: 26px; border: 1px solid #cfd8c9; background: #f8faf4; }
.oot-contact h3 { margin: 0 0 6px; color: #24382c; font-size: 1.15rem; font-weight: 600; letter-spacing: -.03em; }
.oot-contact p { max-width: 600px; margin: 0; color: #5c6b60; font-size: .8rem; }
.oot-contact-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; gap: 18px; }
.oot-contact .text-link { color: #4c5f43; }
.oot-contact .text-link span { color: #7d6a36; }
.oot-page-footer { padding: 26px 0; background: #07110c; color: #9aa79b; }
.oot-page-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.oot-page-footer a { color: var(--oot-gold); font-size: .7rem; text-decoration: none; }
.oot-page-footer .footer-brand { color: #f3ecdb; font-family: var(--sans); font-size: .66rem; }
.oot-page-footer .footer-brand .brand-mark span { color: var(--oot-gold); }
.oot-page-footer span { font: .55rem var(--mono); letter-spacing: .05em; }

@media (max-width: 980px) {
  .oot-hero-inner { grid-template-columns: 1fr .86fr; gap: 28px; }
  .oot-hero-art { min-height: 350px; }
  .oot-composition { width: min(100%, 260px); }
  .oot-state-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oot-retraction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oot-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oot-gallery-wide { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .oot-hero { padding-top: 126px; }
  .oot-hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .oot-hero-art { min-height: 330px; }
  .oot-intro-grid { grid-template-columns: 1fr; gap: 30px; }
  .oot-capture { max-width: 360px; }
  .oot-challenge-grid { grid-template-columns: 1fr; }
  .oot-challenge-card h3 { margin-top: 18px; }
  .oot-state-grid { grid-template-columns: 1fr; }
  .oot-fronts-grid { grid-template-columns: 1fr; }
  .oot-study-grid { grid-template-columns: 1fr; }
  .oot-study-grid dt { padding-bottom: 2px; }
  .oot-study-grid dd { padding-top: 2px; padding-left: 0; border-top: 0; }
  .oot-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oot-timeline li { grid-template-columns: 78px 1fr; gap: 5px 12px; }
  .oot-timeline-date { grid-column: 1; grid-row: 1; }
  .oot-timeline-id { grid-column: 1; grid-row: 2; }
  .oot-timeline li div { grid-column: 2; grid-row: 1 / span 2; }
  .oot-timeline-state { grid-column: 2; grid-row: 3; justify-self: start; }
  .oot-next-list { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 20px; }
  .container { width: min(100% - 36px, 460px); }
  .header-inner { min-height: 68px; flex-wrap: wrap; gap: 7px; padding: 10px 0; }
  .brand { gap: 7px; font-size: .66rem; }
  .brand-mark { width: 30px; height: 30px; }
  .main-nav { width: 100%; justify-content: space-between; gap: 6px; font-size: .7rem; }
  /* Quatro idiomas no nav: em 320px a linha nao cabe e o flex espreme os rotulos.
     Melhor a linha inteira descer do que o texto quebrar dentro do link. */
  .main-nav { flex-wrap: wrap; row-gap: 10px; justify-content: flex-start; }
  .main-nav a { white-space: nowrap; }
  .language-switch { gap: 3px; }
  .main-nav .nav-contact { padding: 5px 8px; }
  .main-nav .language-toggle { min-width: 34px; padding-inline: 5px; }
  .section-pad { padding: 73px 0; }
  .section-intro { margin-top: 13px; }
  .oot-hero { padding-top: 118px; }
  .oot-hero h1 { font-size: clamp(2.85rem, 12.5vw, 4.1rem); }
  .oot-hero-description { max-width: 380px; font-size: .92rem; }
  .oot-hero-note { font-size: .51rem; }
  .oot-hero-art { min-height: 305px; }
  .oot-art-orbit { width: 240px; height: 240px; }
  .oot-art-orbit-two { width: 300px; height: 300px; }
  .oot-composition { width: min(100%, 250px); }
  .oot-art-compass { top: 4px; right: 9px; }
  .oot-art-coordinate { bottom: 8px; left: 2px; }
  .oot-hero-footer { min-height: 56px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; padding: 9px 0; font-size: .49rem; }
  .oot-page .oot-section-heading { display: block; margin-bottom: 28px; }
  .oot-page .oot-section-heading .section-intro { margin-top: 13px; }
  .oot-fact { padding: 14px; }
  .oot-fact-value { font-size: 1.45rem; }
  .oot-capture { max-width: none; }
  .oot-concept { margin-top: 34px; }
  .oot-gallery-grid { grid-template-columns: 1fr; }
  .oot-gallery-wide img { height: auto; max-height: 460px; }
  .oot-gallery-item img { height: auto; max-height: 300px; }
  .oot-table-hint { display: block; }
  .oot-retraction-grid { grid-template-columns: 1fr; }
  .oot-credits-notes { grid-template-columns: 1fr; }
  .oot-contact { align-items: flex-start; flex-direction: column; }
  .oot-contact-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .oot-study summary { flex-wrap: wrap; gap: 6px 12px; }
  .oot-study-grid { padding-inline: 16px; }
  .oot-next-list li { font-size: .76rem; }
  .oot-page-footer .container { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (max-width: 370px) {
  .container { width: calc(100% - 28px); }
  .brand { font-size: .59rem; }
  .oot-hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .oot-fact-grid { grid-template-columns: 1fr; }
  .oot-timeline li { padding-left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
