@font-face {
  font-family: Warren Serif;
  src: url(assets/serif-regular.woff) format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Warren Serif;
  src: url(assets/serif-italic.woff) format("woff");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #120f0e;
  --light: #f8ebd3;
  --brass: #e4ba7c;
  --paper: #efe3ce;
  --serif: "Warren Serif", Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(1.5rem, 6vw, 6rem);
  --measure: 84rem;
}

#contact-dialog { width:min(94vw, 40rem); max-height:90dvh; padding:0; border:1px solid var(--brass); background:var(--ink); color:var(--light); }
#contact-dialog::backdrop { background:rgb(0 0 0 / 78%); }
.contact-panel { padding:clamp(1.25rem, 4vw, 2.5rem); }
.contact-panel h2 { font-family:var(--serif); font-size:clamp(1.75rem, 5vw, 2.5rem); }
.contact-recipient { margin:.75rem 0 1.25rem; overflow-wrap:anywhere; }
#contact-form label { display:block; margin-top:.85rem; }
#contact-form input, #contact-form textarea { display:block; width:100%; margin-top:.3rem; padding:.7rem; font:inherit; border:1px solid #86745f; border-radius:0; background:#201b17; color:var(--light); }
#contact-form textarea { resize:vertical; }
#contact-form input:focus, #contact-form textarea:focus { outline:2px solid var(--brass); outline-offset:2px; }
.contact-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:.75rem; margin-top:1.5rem; }
.contact-actions button { padding:.65rem 1.25rem; border:1px solid var(--brass); background:transparent; cursor:pointer; }
.contact-actions button[type=submit], #contact-success button { background:var(--brass); color:var(--ink); }
.contact-actions button:disabled { opacity:.6; cursor:wait; }
.contact-captcha { margin:1.25rem 0 0; padding:.75rem; min-inline-size:0; border:1px solid #86745f; }
.contact-captcha legend { padding-inline:.25rem; color:var(--brass); }
.contact-captcha-image { display:flex; flex-wrap:wrap; align-items:center; gap:.75rem; }
.contact-captcha-image img { max-width:100%; height:auto; }
.contact-captcha-image button { padding:.45rem .7rem; border:1px solid #86745f; background:transparent; color:inherit; cursor:pointer; }
.contact-captcha-image button:disabled { opacity:.6; cursor:wait; }
#contact-captcha-status { margin-top:.5rem; }
.contact-recipient a { color:var(--brass); text-decoration:underline; }
.contact-note { font-size:.875rem; margin-top:1rem; }
#contact-error { color:#ffb4a9; margin-top:.75rem; }
.contact-trap { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
#contact-success p { margin-top:1rem; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--light); font: 1rem/1.65 var(--sans); }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.skip-link {
  position: fixed;
  z-index: 5;
  top: .75rem;
  left: 1rem;
  padding: .6rem 1rem;
  background: var(--paper);
  color: var(--paper-ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid #49372a;
  background: #14100e;
}

.header-inner, .hero-inner, .feature-inner, .scene-inner, .author-inner, .footer-inner {
  width: min(100% - 2 * var(--gutter), var(--measure));
  margin-inline: auto;
}

.header-inner {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 2.75rem;
  width: clamp(11rem, 23vw, 18rem);
}

.brand img { width: 100%; mix-blend-mode: lighten; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem clamp(1rem, 2.4vw, 2.65rem);
}

.section-nav { display: contents; }

.site-nav a, .menu-toggle, .eyebrow, .button, .text-link {
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.site-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  text-decoration: none;
}

.site-nav a:hover, .menu-toggle:hover { color: var(--brass); }
.site-nav .contact-link { border: 1px solid #785e43; padding-inline: 1.15rem; }
.menu-toggle { min-height: 2.75rem; padding: .2rem .7rem; border: 1px solid #785e43; background: transparent; cursor: pointer; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(36rem, 52vw, 49rem);
  background: #140e0b;
}

.hero-art, .hero-art::after, .hero-frame { position: absolute; }
.hero-art { z-index: -2; inset: 0; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero-art::after {
  content: "";
  inset: 0;
  background:
    linear-gradient(90deg, #130d0a 0%, #130d0ae0 19%, #130d0a44 56%, transparent 77%),
    linear-gradient(0deg, #140e0bd9, transparent 24%, transparent 76%, #140e0b45);
}

.hero-frame {
  z-index: -1;
  pointer-events: none;
  inset: clamp(.65rem, 1.8vw, 1.7rem);
  border: 1px solid #d6a47858;
}

.hero-frame::before, .hero-frame::after {
  content: "";
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  border-color: #d6a478c2;
  border-style: solid;
}

.hero-frame::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.hero-frame::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }
.hero-inner { padding: 5rem 0 5.9rem; }

.eyebrow { line-height: 1.5; }
.hero-credit {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.45rem;
  color: var(--brass);
  letter-spacing: .26em;
}

.hero-credit::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; }

.hero h1 {
  width: min(43vw, 32rem);
  font: 400 clamp(3rem, 6vw, 6rem)/.94 var(--serif);
}

.hero h1 img { width: 100%; filter: drop-shadow(0 4px 18px #1208029c); }

.hero-subtitle {
  margin-top: 1.35rem;
  font: italic 400 clamp(1.35rem, 2.55vw, 2.45rem)/1.2 var(--serif);
  color: #f1d6ab;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.35rem;
  text-align: center;
  text-decoration: none;
}

.button-brass {
  margin-top: 2.25rem;
  border: 1px solid #e1bc81;
  background: var(--brass);
  color: #28180e;
}

.button-brass:hover { background: #f5d8a7; }

h2 {
  margin-top: .65rem;
  font: 400 clamp(3.1rem, 6.3vw, 6.6rem)/.94 var(--serif);
  letter-spacing: -.065em;
}

h2 em { font-weight: 400; }
.lead { font: 400 clamp(1.25rem, 2.1vw, 1.65rem)/1.4 var(--serif); }

.feature {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  background: #14100e;
  border-top: 1px solid #76543a;
}

.feature-photo, .feature-photo::after { position: absolute; inset: 0; }
.feature-photo { z-index: -1; overflow: hidden; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; }
.feature-photo::after { content: ""; }

.feature-inner { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.feature-copy { width: min(100%, 34rem); }
.feature-copy .eyebrow, .feature-copy h2 em { color: var(--brass); }
.feature-copy .lead { margin-top: 1.3rem; }
.feature-copy > p:not(.lead, .eyebrow) { margin-top: .85rem; color: #f1e2d0; }
.feature-copy .button-brass { margin-top: 1.55rem; }

.novel { min-height: clamp(40rem, 56vw, 55rem); }
.novel .feature-photo img { object-position: 35% center; }
.novel .feature-photo::after {
  background: linear-gradient(90deg, transparent 28%, #14100e18 40%, #14100ec9 60%, #14100ed9 100%);
}
.novel .feature-copy { width: min(46%, 35rem); margin-left: auto; }

.world { min-height: clamp(42rem, 67vw, 62rem); align-items: end; }
.world .feature-photo img { object-position: center top; }
.world .feature-photo::after {
  background:
    linear-gradient(0deg, #140f0df8, #140f0dd9 18%, #140f0d24 58%, transparent 75%),
    linear-gradient(90deg, #140f0d72, transparent 66%);
}

.scene {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(29rem, 44vw, 43rem);
  background: #110d0c;
  color: #f6eee0;
}

.scene-photo, .scene-photo::after { position: absolute; inset: 0; }
.scene-photo { z-index: -1; overflow: hidden; }
.scene-photo img { width: 100%; height: 100%; object-fit: cover; object-position: right 55%; }
.scene-photo::after {
  content: "";
  background:
    linear-gradient(90deg, #110d0ce0, #110d0c44 38%, transparent 64%),
    linear-gradient(0deg, #110d0cee, transparent 50%);
}

.scene-inner { padding-block: clamp(3.25rem, 7vw, 6rem); }
.scene-inner .lead { max-width: 32rem; margin-top: 1.2rem; }

.scene-inner > p:last-child {
  max-width: 30rem;
  margin-top: .85rem;
  color: #e4dcd1;
}

.author { border-top: 1px solid #7d5337; background: #171211; }
.author-inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 8vw, 7rem);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.author-portrait {
  width: min(100%, 25rem);
  justify-self: center;
  border: 1px solid #906e4c;
  padding: .4rem;
  background: #100e0e;
}

.author-portrait img { width: 100%; }
.author .eyebrow, .text-link { color: var(--brass); }
.author h2 { font-size: clamp(2.6rem, 6.25vw, 6.15rem); }
.author cite { font-family: var(--serif); }
.author-copy > p:not(.eyebrow) { margin-top: 1.25rem; color: #e7d8c7; }

.author-quote {
  max-width: 32rem;
  margin: 1.4rem 0 .65rem;
  padding-inline-start: 1rem;
  border-inline-start: 1px solid #906e4c;
  color: #f1d6ab;
  font: italic 400 clamp(1.05rem, 1.35vw, 1.3rem)/1.55 var(--serif);
}

.text-link { display: inline-flex; min-height: 2.75rem; align-items: center; text-underline-offset: .34em; }
.text-link:hover { color: var(--light); }

.site-footer { border-top: 1px solid #5c3e2c; color: #dacaaf; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  min-height: 4.75rem;
  padding-block: .7rem;
  font-size: .875rem;
}

.site-footer a { display: inline-flex; min-height: 2.75rem; align-items: center; text-underline-offset: .3em; }
.site-footer a:hover { color: var(--brass); }

@media (max-width: 1040px) {
  .header-inner { min-height: 4.3rem; flex-wrap: wrap; gap: 0 1rem; }
  .brand { width: clamp(9rem, 52vw, 16rem); }
  .site-nav { width: 100%; padding: 0 0 .6rem; gap: 0 .9rem; }
  .site-nav a { letter-spacing: .06em; }
  .site-nav .contact-link { border: 0; padding-inline: 0; }
}

@media (max-width: 860px) {
  .feature { min-height: 0; align-items: end; }
  .feature-photo { background: var(--mobile-art) center bottom / cover no-repeat; }
  .feature .feature-photo img { height: auto; }
  .feature .feature-photo::after {
    background: linear-gradient(180deg, transparent 20vw, #14100e18 44vw, #14100ee8 73vw, #14100ef5 105vw);
  }
  .feature-inner { padding-block: 72vw 3.8rem; }
  .feature-copy, .novel .feature-copy { width: min(100%, 35rem); margin-inline: 0 auto; }
  .novel { --mobile-art: url(assets/sins-warren-despacho-movil.webp); }
  .world { --mobile-art: url(assets/the-blue-shark-plateado.webp); }
}

@media (max-width: 720px) {
  .hero { align-items: start; min-height: 0; }
  .hero-inner { padding: clamp(3rem, 10vw, 4.75rem) 0 clamp(12rem, 57vw, 21rem); }
  .hero-credit { margin-bottom: 1.05rem; letter-spacing: .18em; }
  .hero-credit::before { width: 1.4rem; }
  .hero h1 { width: min(100%, 26rem); }
  .hero-subtitle { margin-top: 1rem; }
  .button-brass { margin-top: 1.45rem; }
  .hero-art { top: clamp(10rem, 39vw, 16rem); }
  .hero-art img { object-position: 53% 75%; }
  .hero-art::after {
    background: linear-gradient(180deg, #140e0b, #140e0bd1 24%, transparent 60%, #140e0b28 85%, #140e0b82);
  }
  .hero-frame::before, .hero-frame::after { width: 1.65rem; height: 1.65rem; }
  .scene { min-height: auto; }
  .scene-photo { position: relative; }
  .scene-photo img { height: auto; }
  .scene-photo::after { background: linear-gradient(0deg, #110d0c, transparent 25%); }
  .scene-inner { padding-block: 1rem 3.5rem; }
  .author-inner { grid-template-columns: 1fr; gap: 2rem; }
  .author-portrait { width: min(100%, 20rem); justify-self: start; }
}

@media (max-width: 360px) {
  :root { --gutter: 1.25rem; }
  .hero-inner { padding-bottom: 12rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
