:root {
  color-scheme: dark;
  --black: #070708;
  --graphite: #101114;
  --surface: #15161a;
  --line: #303238;
  --silver: #b7bac1;
  --muted: #91949c;
  --paper: #f0eee9;
  --white: #fafafa;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --content: 72rem;
  --reading: 49.375rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font: 400 1rem/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: .06em;
  text-underline-offset: .25em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  background: var(--white);
  color: #000;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  background: rgb(7 7 8 / 94%);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: .025em;
}

.brand-mark {
  width: 2.65rem;
  height: 2.65rem;
  object-fit: contain;
}

.brand-placeholder {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  color: var(--silver);
  font: 600 .68rem/1 var(--serif);
  letter-spacing: .08em;
}

.menu-button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
}

.menu-button::before {
  content: 'Menu';
}

.site-nav {
  display: grid;
  position: absolute;
  inset: 4.5rem 0 auto;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--graphite);
}

.site-nav[data-open='true'] {
  display: grid;
}

.site-nav a {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  color: var(--muted);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .15em;
  text-transform: uppercase;
  transition: color .2s ease;
}

.site-nav a:hover {
  color: var(--paper);
}

.site-nav a[aria-current='page'] {
  color: var(--white);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--silver);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-block: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 10vw, 7.5rem);
  letter-spacing: -.04em;
}

h2 {
  font-size: clamp(2.2rem, 6vw, 4.75rem);
  letter-spacing: -.03em;
}

h3 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.hero {
  min-height: calc(100svh - 5rem);
  display: grid;
  align-content: center;
  padding-block: clamp(4rem, 9vw, 7.5rem) 2rem;
  overflow: clip;
  background: radial-gradient(
    circle at 78% 38%,
    rgb(255 255 255 / 5%),
    transparent 29rem
  );
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  max-width: 49rem;
}

.hero h1 {
  max-width: 8ch;
}

.lede {
  max-width: 45rem;
  margin: 1.75rem 0 0;
  color: #c7c7c8;
  font: 400 clamp(1.15rem, 2.4vw, 1.5rem)/1.55 var(--serif);
}

.hero-identity {
  display: grid;
  place-items: center;
  min-width: 0;
}

.hero-mark {
  width: min(72vw, 31rem);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 1.5rem 3rem rgb(0 0 0 / 45%));
}

.hero-placeholder {
  display: grid;
  place-items: center;
  width: min(68vw, 22rem);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  color: var(--silver);
  font: 500 clamp(3rem, 15vw, 7rem)/1 var(--serif);
  letter-spacing: .08em;
}

.hero-index {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.1rem;
  border: 1px solid var(--paper);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background-color .2s, color .2s;
}

.button:hover {
  background: var(--paper);
  color: var(--black);
}

.button-secondary {
  border-color: var(--line);
  color: var(--silver);
}

.section {
  padding-block: clamp(5rem, 11vw, 9rem);
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.section-grid {
  display: grid;
  gap: 2rem;
}

.section-copy {
  max-width: 43rem;
}

.section-copy p:not(.eyebrow) {
  color: #bbbcc1;
}

.feature-number {
  color: var(--muted);
  font: 400 clamp(4rem, 12vw, 8.5rem)/.85 var(--serif);
}

.feature-copy h2 {
  margin-top: .55rem;
}

.feature-synopsis {
  max-width: 37rem;
  margin-top: 1.75rem;
  font: 400 clamp(1.12rem, 2vw, 1.35rem)/1.7 var(--serif);
}

.library-preview {
  background: var(--graphite);
}

.author-statement {
  max-width: 42rem;
  font: 400 clamp(1.2rem, 2.3vw, 1.55rem)/1.65 var(--serif);
}

.catalogue {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.catalogue-item {
  display: grid;
  gap: 1rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.catalogue-number {
  color: var(--muted);
  font: 400 1rem/1 var(--serif);
}

.catalogue-meta {
  color: var(--muted);
  font-size: .85rem;
  letter-spacing: .06em;
}

.catalogue-item p {
  max-width: 48rem;
  margin: 0;
  color: #b9bac0;
}

.texts-page {
  padding-block: 2rem;
}

.texts-grid {
  display: grid;
  align-items: start;
  gap: 2.5rem;
}

.texts-intro,
.texts-list {
  min-width: 0;
}

.texts-intro h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
}

.texts-intro .lede {
  max-width: 25rem;
  margin-top: 1.25rem;
  font-size: clamp(1.125rem, 1.8vw, 1.25rem);
}

.texts-list {
  display: grid;
  gap: 3rem;
}

.text-work {
  display: block;
  max-width: 40rem;
  text-decoration: none;
}

.text-work-image {
  width: 100%;
  max-width: 26rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 1rem;
}

.text-work-title {
  margin-bottom: .5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.text-work-meta,
.text-work-status {
  display: block;
  color: var(--silver);
  font-size: .75rem;
  letter-spacing: .1em;
}

.text-work-status {
  margin-top: .5rem;
}

.text-work-synopsis {
  max-width: 36rem;
  margin: 1rem 0 0;
  color: #c7c7c8;
  font: 400 1.125rem/1.55 var(--serif);
}

@media (min-width: 60rem) {
  .texts-grid {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 5vw, 5rem);
  }
}

@media (min-width: 60rem) and (min-height: 44rem) {
  .texts-shell {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  .texts-shell > .site-header,
  .texts-shell > .site-footer {
    flex: 0 0 auto;
  }

  .texts-shell > main {
    flex: 1 1 auto;
  }

  .texts-page {
    padding-block: 1.25rem;
  }

  .texts-shell > .site-footer {
    padding-block: 2.5rem;
  }
}

.page-intro {
  padding-block: clamp(5rem, 12vw, 9rem);
}

.page-intro h1 {
  font-size: clamp(3.2rem, 9vw, 7rem);
}

.page-intro .lede {
  max-width: 40rem;
}

.author-page {
  padding-block: clamp(2rem, 5vh, 3rem);
}

.author-grid {
  display: grid;
  align-items: start;
  gap: 2rem;
}

.author-identity,
.author-copy {
  min-width: 0;
}

.author-page h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
}

.author-copy {
  max-width: 40rem;
}

.author-copy .lede {
  margin: 0;
  font-size: clamp(1.125rem, 1.8vw, 1.25rem);
}

.author-copy .lede + .lede {
  margin-top: 1.25rem;
}

.author-themes {
  margin: 1.5rem 0 0;
  color: var(--silver);
  font-size: .75rem;
  line-height: 1.9;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.author-copy .actions {
  margin-top: 1.5rem;
}

@media (min-width: 60rem) {
  .author-grid {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 5vw, 5rem);
  }

  .author-copy {
    padding-top: 2.5rem;
  }

  .author-identity {
    padding-bottom: 8rem;
  }
}

@media (min-width: 60rem) and (min-height: 44rem) {
  .author-shell {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  .author-shell > .site-header,
  .author-shell > .site-footer {
    flex: 0 0 auto;
  }

  .author-shell > main {
    flex: 1 1 auto;
  }

  .author-shell .author-page {
    padding-block: 1.25rem;
  }

  .author-shell > .site-footer {
    padding-block: 2.5rem;
  }
}

.contact-page {
  padding-block: clamp(2rem, 5vh, 3rem);
}

.contact-grid {
  display: grid;
  align-items: start;
  gap: 2rem;
}

.contact-identity,
.contact-copy {
  min-width: 0;
}

.contact-page h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
}

.contact-copy {
  max-width: 40rem;
}

.contact-copy .lede {
  margin: 0;
  font-size: clamp(1.125rem, 1.8vw, 1.25rem);
}

.contact-channel,
.contact-copy .actions {
  margin-top: 1.5rem;
}

.contact-label {
  margin: 0 0 .5rem;
  color: var(--silver);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.contact-email {
  font: 400 clamp(1.125rem, 1.8vw, 1.25rem)/1.55 var(--serif);
  overflow-wrap: anywhere;
}

@media (min-width: 48rem) {
  .contact-grid {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 5vw, 5rem);
  }

  .contact-copy {
    padding-top: 2.5rem;
  }
}

@media (min-width: 48rem) and (min-height: 40rem) {
  .contact-shell {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  .contact-shell > .site-header,
  .contact-shell > .site-footer {
    flex: 0 0 auto;
  }

  .contact-shell > main {
    flex: 1 1 auto;
  }

  .contact-shell .contact-page {
    padding-block: 1.25rem;
  }

  .contact-shell > .site-footer {
    padding-block: 2.5rem;
  }
}

.site-footer {
  padding-block: 3.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .86rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-title {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  text-decoration: none;
}

.reading-progress {
  position: fixed;
  z-index: 60;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--paper) var(--reading-progress, 0%),
    transparent 0
  );
  pointer-events: none;
}

.story-header {
  min-height: 72svh;
  display: grid;
  place-items: center;
  padding-block: 7rem 5rem;
  text-align: center;
}

.story-header h1 {
  font-size: clamp(3.5rem, 13vw, 8.5rem);
}

.story-byline {
  margin-top: 1.25rem;
  color: var(--silver);
  font: italic 1.15rem/1.5 var(--serif);
}

.story-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.reading-toolbar {
  display: flex;
  justify-content: center;
  gap: .25rem;
  width: fit-content;
  margin: clamp(-2.5rem, -3.25svh, -1.5rem) auto 3rem;
  padding: .3rem;
  border: 1px solid var(--line);
  background: var(--black);
}

.reading-toolbar span {
  align-self: center;
  padding-inline: .55rem;
  color: var(--muted);
  font-size: .75rem;
}

.reading-toolbar button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}

.reading-toolbar button[aria-pressed='true'] {
  background: var(--surface);
}

.story-content {
  width: min(calc(100% - 3rem), var(--reading));
  margin-inline: auto;
  padding-bottom: clamp(9rem, 15vw, 13rem);
  scroll-margin-top: 8rem;
  color: #dedbd4;
  font: 400 1.16rem/1.78 var(--serif);
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: none;
  hyphens: none;
}

.story-content[data-font-size='large'] {
  font-size: 1.3rem;
}

.story-content p {
  margin: 0;
  text-indent: 1.4em;
}

.story-content > .story-opening-title + .story-paragraph,
.story-content > .story-day + .story-paragraph,
.story-content > .story-break + .story-paragraph,
.story-content .story-countdown,
.story-content .system-status,
.story-content .system-log,
.story-content .system-command,
.story-content .system-readout,
.system-readout + .system-readout + .system-readout + .story-paragraph {
  text-indent: 0;
}

.story-opening-title {
  margin: 0 0 3rem;
  color: var(--paper);
  font-size: 1.05em;
  text-align: center;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-wrap: pretty;
}

.story-day {
  margin: 4rem 0 1.5rem;
  color: var(--silver);
  font: 650 .72rem/1.4 var(--sans);
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
  text-wrap: pretty;
}

.story-break {
  margin: 3.5rem 0;
  color: #666970;
  font: 400 .78rem/1 var(--serif);
  letter-spacing: .5em;
  text-align: center;
}

.story-countdown {
  letter-spacing: .08em;
}

.system-status,
.system-log,
.system-command,
.system-readout,
.system-readout + .system-readout + .system-readout + .story-paragraph {
  color: #adb3bf;
  font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
  font-size: .82em;
  line-height: 1.75;
  letter-spacing: .025em;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.story-content .system-status {
  margin-block: 2.4rem;
}

.story-content .system-readout {
  margin: 0;
}

.story-content .story-paragraph + .system-readout {
  margin-top: 2.4rem;
}

.story-content .system-readout + .story-paragraph {
  margin-top: 2.4rem;
}

.story-content .system-readout + .system-readout + .system-readout + .story-paragraph {
  margin: 0 0 2.4rem;
}

.system-log {
  margin-bottom: .4em !important;
}

.system-command {
  margin-block: 1.75rem 3rem !important;
}

.story-content hr {
  width: 3rem;
  margin: 4.75rem auto;
  border: 0;
  border-top: 1px solid var(--line);
}

.manuscript-placeholder {
  margin-block: 4rem;
  padding: 2rem;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.story-end {
  width: min(calc(100% - 3rem), var(--reading));
  margin: 0 auto 7rem;
  padding-top: 4rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.story-end p {
  margin: .3rem 0;
  font-family: var(--serif);
}

.story-end > a {
  display: inline-block;
  margin-top: 3rem;
  font: 650 .78rem/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.story-copyright {
  margin-top: 1.5rem !important;
  color: var(--muted);
  font-family: var(--sans) !important;
  font-size: .72rem;
}

/* A Home funciona como uma tela única de entrada para a biblioteca. */

.home-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--black);
}

.home-page .site-header {
  position: relative;
  flex: 0 0 auto;
  background: var(--black);
  backdrop-filter: none;
}

.home-page .shell {
  width: 100%;
  max-width: none;
  padding-inline: clamp(1rem, 3.2vw, 3.75rem);
}

.home-page .header-inner {
  min-height: clamp(5.25rem, 8vw, 6.75rem);
}

.home-page .brand {
  gap: 1rem;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  letter-spacing: .035em;
}

.home-page .brand-mark {
  width: clamp(3.25rem, 5vw, 4.5rem);
  height: clamp(3.25rem, 5vw, 4.5rem);
}

.home-page main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

.home-library-nav {
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
}

.home-library {
  width: 100%;
  height: 100%;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

.home-work {
  container-type: inline-size;
  position: relative;
  min-width: 0;
  flex: 1 1 0;
  border-radius: 12px;
  background: var(--black);
  overflow: hidden;
  transition:
    flex-grow 1.2s cubic-bezier(.22, 1, .36, 1),
    background-color .25s ease;
}

.home-work::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgb(255 255 255 / 18%), rgb(255 255 255 / 8%) 45%, transparent 88%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.home-work-link,
.home-work-placeholder {
  display: grid;
  grid-template-rows: 1fr;
  gap: 1rem;
  height: 100%;
  padding: clamp(1rem, 2vw, 2rem);
  color: var(--paper);
  text-decoration: none;
}

.home-work-link {
  position: relative;
  isolation: isolate;
}

button.home-work-link {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.catalogue-status {
  display: block;
  margin-top: .75rem;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .14em;
}

.not-found {
  padding-block: clamp(4rem, 10vw, 8rem);
}

.not-found-inner {
  min-height: 55vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.not-found-code {
  color: #45464c;
  font: 400 clamp(6rem, 18vw, 16rem)/1 var(--serif);
  letter-spacing: -.06em;
}

.not-found-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
}

.not-found-actions {
  flex-wrap: wrap;
}

@media (max-width: 47.99rem) {
  .not-found-inner {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .not-found-actions .button {
    min-height: 3rem;
  }
}

.catalogue-image {
  display: block;
  width: 100%;
  max-width: 12rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 1rem;
}

.home-work-media {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  background: var(--black);
  pointer-events: none;
}

.home-work-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 24%);
}

.home-work-media img {
  width: 112%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .26;
  transform: translateX(0) scale(1.02);
  transition:
    transform 1s ease,
    object-position 1s ease,
    opacity .8s ease;
}

.home-work-composition {
  position: relative;
  grid-row: 1;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
}

.home-work-title {
  align-self: center;
  justify-self: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-transform: uppercase;
  color: var(--paper);
  font: 400 clamp(1.25rem, 2.2vw, 2.25rem)/1 var(--serif);
  letter-spacing: .12em;
}

.home-work-details {
  position: absolute;
  inset-inline: clamp(4rem, 5vw, 5.5rem) 0;
  top: 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 34rem;
  opacity: 0;
  transform: translate(1.25rem, -50%);
  pointer-events: none;
  transition:
    opacity 1.2s cubic-bezier(.22, 1, .36, 1),
    transform 1.2s cubic-bezier(.22, 1, .36, 1);
}

.home-work-universe {
  position: absolute;
  inset: auto .25rem 1.5rem;
  display: grid;
  gap: .2rem;
  color: var(--silver);
  font-size: clamp(.45rem, 7cqi, .7rem);
  line-height: 1.4;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
}

.home-work-announcement-title {
  font: 400 clamp(1.1rem, 2vw, 1.6rem)/1.2 var(--serif);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.home-work-announcement-universe {
  display: grid;
  gap: .15rem;
  margin-top: 1rem;
  color: var(--silver);
  font-size: .7rem;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}

.home-work-universe-line {
  display: block;
  text-align: center;
}

.home-work-meta,
.home-work-action {
  font-size: .66rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.home-work-meta {
  color: #777980;
}

.home-work-synopsis {
  margin-top: 1rem;
  color: #d0ced0;
  font: 400 clamp(1rem, 1.55vw, 1.3rem)/1.55 var(--serif);
}

.home-work-action {
  margin-top: 1.5rem;
  color: var(--paper);
}

.home-work--available:not(.home-work--disclosure):hover,
.home-work--available:not(.home-work--disclosure):focus-within {
  /* Preserve the open width of the ten-slot shelf with eleven closed spines. */
  flex-grow: 8.555556;
  background: #0c0c0e;
}

.home-work--available:not(.home-work--disclosure):hover .home-work-media img,
.home-work--available:not(.home-work--disclosure):focus-within .home-work-media img {
  object-position: 68% center;
  opacity: .30;
  transform: translateX(-6%) scale(1.08);
}

.home-work--available:not(.home-work--disclosure):hover .home-work-details,
.home-work--available:not(.home-work--disclosure):focus-within .home-work-details {
  opacity: 1;
  transform: translate(0, -50%);
}

.home-work-link:focus-visible {
  outline-offset: -3px;
}

.home-footer {
  flex: 0 0 auto;
  padding-block: clamp(1.1rem, 2.4vw, 1.75rem);
  border-top: 1px solid rgb(255 255 255 / 8%);
  color: #797b81;
  font-size: .75rem;
  letter-spacing: .035em;
  text-align: left;
}

@media (min-width: 48rem) {
  .home-work::after {
    background:
      linear-gradient(180deg, transparent, rgb(255 255 255 / 7%) 24%, rgb(255 255 255 / 7%) 76%, transparent) left / 1px 100% no-repeat,
      linear-gradient(90deg, rgb(255 255 255 / 6%), rgb(255 255 255 / 3%) 32%, transparent 78%) top / 100% 1px no-repeat,
      linear-gradient(90deg, rgb(255 255 255 / 6%), rgb(255 255 255 / 3%) 32%, transparent 78%) bottom / 100% 1px no-repeat;
  }

  .home-work-title {
    position: absolute;
    top: calc(2.5rem - clamp(1rem, 2vw, 2rem));
    left: 1em;
    width: max-content;
    white-space: nowrap;
    writing-mode: horizontal-tb;
    transform-origin: top left;
    transform: rotate(90deg);
    font-size: clamp(1rem, min(1.5vw, 5vh), 1.5rem);
  }

  .shell {
    width: min(calc(100% - 4rem), var(--content));
  }

  .menu-button {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    gap: 2rem;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .site-nav a {
    min-height: 2.75rem;
    border: 0;
  }

  .hero-grid {
    grid-template-columns:
      minmax(0, 1.12fr)
      minmax(22rem, .88fr);
    align-items: center;
  }

  .section-grid {
    grid-template-columns:
      minmax(12rem, .55fr)
      minmax(0, 1.45fr);
  }

  .catalogue-item {
    grid-template-columns:
      4rem
      minmax(12rem, .6fr)
      minmax(20rem, 1fr);
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 47.99rem) {
  .home-page {
    overflow: visible;
  }

  .home-library {
    height: auto;
    overflow: visible;
  }

  .home-work-link {
    min-height: inherit;
  }

  .home-work-universe {
    inset: auto 1rem .75rem auto;
    font-size: .55rem;
    text-align: center;
  }

  .home-work--available.is-open,
  .home-work--available:not(.home-work--disclosure):focus-within {
    min-height: 16rem;
  }

  .home-page .header-inner {
    min-height: 5.25rem;
  }

  .home-page .brand {
    gap: .75rem;
    font-size: 1rem;
  }

  .home-page .brand-mark {
    width: 3.15rem;
    height: 3.15rem;
  }

  .home-page .site-nav {
    inset-block-start: 5.25rem;
  }

  .home-page .home-footer {
    padding-block: 1rem;
    font-size: .7rem;
  }

  .home-library {
    flex-direction: column;
  }

  .home-work {
    min-width: auto;
    min-height: 4.5rem;
  }

  .home-work-link,
  .home-work-placeholder {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: .25rem .65rem;
    padding: .65rem 1rem;
  }

  .home-work--available.is-open {
    flex-grow: 4.5;
    background: #0c0c0e;
  }

  .home-work-media img,
  .home-work--available:not(.home-work--disclosure):hover .home-work-media img,
  .home-work--available:not(.home-work--disclosure):focus-within .home-work-media img,
  .home-work--available.is-open .home-work-media img {
    object-position: center;
    opacity: .26;
    transform: none;
  }

  .home-work-composition {
    display: contents;
  }

  .home-work-title {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: start;
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1rem;
    letter-spacing: .1em;
  }

  .home-work-details {
    position: absolute;
    inset: 2.5rem 1rem .8rem 1rem;
    max-width: none;
    transform: translateY(.5rem);
  }

  .home-work--available.is-open .home-work-details,
  .home-work--available:not(.home-work--disclosure):focus-within .home-work-details {
    opacity: 1;
    transform: translateY(0);
  }

  .home-work-meta {
    font-size: .55rem;
    letter-spacing: .1em;
  }

  .home-work-synopsis {
    margin-top: .55rem;
    font-size: clamp(.8rem, 3.5vw, .95rem);
    line-height: 1.4;
  }

  .home-work-action {
    margin-top: .65rem;
    font-size: .56rem;
  }

  .story-content {
    width: min(calc(100% - 2rem), var(--reading));
    font-size: 1.08rem;
    line-height: 1.82;
  }

  .story-content[data-font-size='large'] {
    font-size: 1.22rem;
  }

  .story-day {
    margin-top: 3.5rem;
  }

  .story-break {
    margin-block: 3rem;
  }

  .story-end {
    width: min(calc(100% - 2rem), var(--reading));
  }
}

@media (max-width: 37.5rem) {
  .story-content {
    text-align: left;
    text-justify: auto;
    hyphens: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.footer-lower {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  min-width: 0;
  text-align: left;
}

.footer-social-links {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .25rem;
}

.footer-social-link {
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: normal;
  opacity: .82;
  text-transform: none;
  text-decoration: none;
  transition: color .18s ease, opacity .18s ease;
}

.footer-social-link:hover {
  color: var(--silver);
  opacity: 1;
}

.footer-social-icon {
  width: 1.0625rem;
  height: 1.0625rem;
  flex: 0 0 auto;
  display: block;
  pointer-events: none;
}

@media (max-width: 47.99rem) {
  .footer-lower {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
  }

  .footer-social-links {
    justify-content: flex-start;
  }
}

/* Recolher a navegação somente após a inicialização do controle. */
@media (max-width: 47.99rem) {
  .site-nav { position: static; }
  .site-header:has(.menu-button[data-ready]) .site-nav { position: absolute; }
  .site-nav[data-enhanced][data-open='false'] { display: none; }
  .menu-button:not([data-ready]) { display: none; }
}
.home-work--available.is-open .home-work-details { opacity: 1; transform: translate(0, -50%); }
.home-work--available.is-open { flex-grow: 8.555556; }
@media (max-width: 47.99rem) {
  .home-work--available.is-open .home-work-details { transform: translateY(0); }
}
.consent-banner { position: fixed; inset: auto 1rem 1rem; z-index: 100; padding: 1rem; background: #18181b; color: #fff; border: 1px solid #777; box-shadow: 0 4px 24px #0008; max-height: 50dvh; overflow: auto; }
.consent-banner[hidden] { display: none; }
.consent-banner button { margin: .25rem .5rem .25rem 0; padding: .65rem 1rem; font: inherit; cursor: pointer; }
.privacy-link { color: inherit; }
.privacy-content { max-width: 52rem; line-height: 1.7; }
