/* vesselborn.com. Shares the palette of the codex, the Chronicle and the shop. */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('/assets/fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bebas Neue'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/bebas-neue-latin-400-normal.woff2') format('woff2'); }

:root {
  --ink: #050506;
  --panel: #0d0d0f;
  --panel-hi: #121215;
  --rule: #1f1f23;
  --text: #cfcfcf;
  --dim: #8a8a90;
  --bright: #ececec;
  --brass: #8b7355;
  --brass-hi: #b39a76;
  --error: #c98a7d;
  --measure: 36rem;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --display: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--ink); color: var(--text);
  font: 500 1.1875rem/1.7 var(--serif);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--bright); color: var(--ink); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* Navigation, same as the codex, the Chronicle and the shop */
.site-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .35rem 1.9rem; padding: .95rem 1rem; background: rgba(5,5,6,.9); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 10; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-family: Georgia, 'Times New Roman', serif; }
.site-nav a { color: var(--dim); text-decoration: none; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--bright); }

/* Shared type */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.eyebrow { font-family: var(--display); font-size: .95rem; letter-spacing: .28em; color: var(--brass-hi); }
.sec { padding: 5.5rem 0; }
.sec + .sec { border-top: 1px solid var(--rule); }
.sec-h { font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.15; color: var(--bright); margin: .4rem 0 1.2rem; }
.lede { max-width: var(--measure); color: var(--text); font-size: 1.2rem; }
.lede + .lede { margin-top: 1rem; }
.more { display: inline-block; margin-top: 1.6rem; color: var(--brass-hi); text-decoration: none; border-bottom: 1px solid rgba(179,154,118,.4); padding-bottom: 1px; }
.more:hover { color: var(--bright); border-color: var(--bright); }

.btn { display: inline-block; padding: .8rem 1.7rem; border: 1px solid var(--brass); color: var(--bright); background: transparent; text-decoration: none; font: 600 1.02rem/1.2 var(--serif); letter-spacing: .04em; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--brass); color: var(--ink); }
.btn-quiet { border-color: #3a3a40; color: var(--text); }
.btn-quiet:hover { background: transparent; border-color: var(--brass-hi); color: var(--bright); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Hero */
.hero { position: relative; min-height: min(88vh, 54rem); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 18%; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,5,6,.2) 0%, rgba(5,5,6,0) 30%, rgba(5,5,6,.75) 75%, var(--ink) 100%), linear-gradient(90deg, rgba(5,5,6,.65), rgba(5,5,6,0) 60%); }
.hero-inner { width: 100%; padding-bottom: clamp(3rem, 9vh, 6rem); padding-top: 8rem; }
.wordmark { font-family: var(--display); font-weight: 400; font-size: clamp(3.4rem, 11vw, 7.5rem); line-height: .9; letter-spacing: .14em; color: var(--bright); margin-right: -.14em; }
.hero-sub { margin-top: 1.1rem; max-width: 34rem; font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.5; color: var(--bright); }
.hero .btn-row { margin-top: 2.2rem; }

/* Explore */
.explore { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 2.8rem; border-top: 1px solid var(--rule); }
.explore li { border-right: 1px solid var(--rule); }
.explore li:last-child { border-right: 0; }
.explore a { display: flex; flex-direction: column; height: 100%; padding: 1.8rem 1.6rem 2rem; text-decoration: none; transition: background .2s; }
.explore a:hover { background: var(--panel); }
.explore .num { font-family: var(--display); letter-spacing: .2em; color: var(--brass); font-size: .95rem; }
.explore h3 { font-weight: 600; font-size: 1.55rem; color: var(--bright); margin: .5rem 0 .5rem; line-height: 1.2; }
.explore p { color: var(--dim); font-size: 1.05rem; line-height: 1.55; flex: 1; }
.explore .go { margin-top: 1.2rem; color: var(--brass-hi); font-size: 1rem; }
.explore a:hover .go { color: var(--bright); }

/* Read now */
.reads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; margin-top: 2.8rem; }
.read { display: grid; grid-template-columns: minmax(0, 11rem) 1fr; gap: 1.8rem; align-items: start; }
.read img { box-shadow: 0 1.4rem 2.6rem rgba(0,0,0,.6), -1px 0 0 rgba(255,255,255,.06); }
.read .kind { color: var(--brass-hi); font-style: italic; font-size: 1rem; }
.read h3 { font-weight: 600; font-size: 1.6rem; line-height: 1.2; color: var(--bright); margin: .15rem 0 .55rem; }
.read h3 a { text-decoration: none; }
.read h3 a:hover { color: #fff; }
.read p { color: var(--text); font-size: 1.08rem; line-height: 1.6; }
.read .price { margin: .9rem 0 1.1rem; color: var(--bright); }

/* About band */
.band { background: var(--panel); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 4rem; align-items: start; }

/* Newsletter */
.signup { max-width: 40rem; }
.signup-form { display: grid; grid-template-columns: 1fr auto; gap: .8rem; margin-top: 1.8rem; align-items: start; }
.signup-form .field { grid-column: 1; }
.signup-form .btn { grid-column: 2; grid-row: 1; height: 100%; }
.signup-form .cf-turnstile { grid-column: 1 / -1; min-height: 65px; }
.fine { color: var(--dim); font-size: .98rem; margin-top: 1rem; }
.fine a { color: var(--text); }

/* Forms */
.form { display: grid; gap: 1.3rem; margin-top: 2.2rem; }
.field label { display: block; font-size: 1rem; color: var(--dim); margin-bottom: .35rem; }
.field label .opt { font-style: italic; }
input[type=text], input[type=email], select, textarea {
  width: 100%; padding: .8rem .95rem; background: var(--panel); color: var(--bright);
  border: 1px solid #2a2a30; border-radius: 0; font: 500 1.08rem/1.4 var(--serif);
  transition: border-color .2s, background .2s;
}
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 1.2rem) 55%, calc(100% - .9rem) 55%; background-size: .3rem .3rem; background-repeat: no-repeat; padding-right: 2.4rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass); background: var(--panel-hi); }
textarea { min-height: 11rem; resize: vertical; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.6rem; font-size: 1.05rem; color: var(--dim); }
.status.err { color: var(--error); }
.status.ok { color: var(--brass-hi); }
.done { border: 1px solid var(--rule); background: var(--panel); padding: 2rem; margin-top: 2.2rem; }
.done h2 { font-weight: 600; font-size: 1.6rem; color: var(--bright); margin-bottom: .5rem; }

/* Text pages */
.page-head { padding: 5rem 0 2.5rem; }
.page-head h1 { font-weight: 500; font-size: clamp(2.3rem, 5vw, 3.5rem); line-height: 1.1; color: var(--bright); }
.page-head p { max-width: var(--measure); margin-top: 1rem; color: var(--dim); font-size: 1.2rem; }
.prose { max-width: 40rem; padding-bottom: 5rem; }
.prose p { margin-bottom: 1.15rem; }
.prose h2 { font-weight: 600; font-size: 1.45rem; color: var(--bright); margin: 2.4rem 0 .7rem; }
.prose ul { margin: 0 0 1.15rem 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--brass-hi); }
.prose a:hover { color: var(--bright); }
.prose .closing { margin-top: 2.4rem; font-style: italic; color: var(--dim); }
.updated { color: var(--dim); font-style: italic; }

/* Gallery */
.plates { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2.2rem; padding-bottom: 5rem; }
.plate button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.plate img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: opacity .2s; }
.plate button:hover img { opacity: .85; }
.plate figcaption { margin-top: .8rem; color: var(--text); font-size: 1.08rem; line-height: 1.5; }
.plate figcaption a { color: var(--brass-hi); text-decoration: none; border-bottom: 1px solid rgba(179,154,118,.35); }
.plate figcaption a:hover { color: var(--bright); border-color: var(--bright); }
.viewer { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; margin: auto; }
.viewer::backdrop { background: rgba(5,5,6,.94); }
.viewer img { max-width: 96vw; max-height: 86vh; width: auto; margin: 0 auto; }
.viewer p { color: var(--text); text-align: center; margin-top: .7rem; font-size: 1.05rem; }
.viewer button { position: fixed; top: 1rem; right: 1.2rem; background: none; border: 1px solid #3a3a40; color: var(--bright); font: 600 1rem var(--serif); padding: .4rem .9rem; cursor: pointer; }

/* 404 */
.lost { padding: 7rem 0 6rem; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding: 2.4rem 1.5rem 2.8rem; color: var(--dim); font-size: .98rem; }
.foot-inner { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; justify-content: space-between; align-items: baseline; }
.site-foot a { color: var(--dim); text-decoration: none; }
.site-foot a:hover { color: var(--bright); }
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.social { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }

@media (max-width: 900px) {
  .explore { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explore li:nth-child(2) { border-right: 0; }
  .explore li:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .reads { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 620px) {
  body { font-size: 1.125rem; }
  .site-nav { gap: .3rem 1.1rem; padding: .8rem .75rem; }
  .site-nav a { font-size: .72rem; letter-spacing: .1em; }
  .sec { padding: 4rem 0; }
  .explore { grid-template-columns: 1fr; }
  .explore li { border-right: 0; border-bottom: 1px solid var(--rule); }
  .read { grid-template-columns: minmax(0, 8rem) 1fr; gap: 1.2rem; }
  .plates { grid-template-columns: 1fr; }
  .signup-form { grid-template-columns: 1fr; }
  .signup-form .btn { grid-column: 1; grid-row: auto; }
  .foot-inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Entrance: the emblem draws itself, stroke by stroke ---------- */
.intro {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(70% 60% at 50% 45%, #17140f 0%, #0a0909 60%, var(--ink) 100%);
  color: #c9b38c; cursor: pointer;
  animation: intro-out .7s ease 3.15s forwards;
}
.intro-emblem { width: auto; height: min(52vh, 25rem); overflow: visible; }
.intro .draw { stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; animation: draw var(--t) cubic-bezier(.55,.1,.3,1) var(--d) forwards; }
.intro .fade { opacity: 0; animation: fade-in .4s ease var(--d) forwards; }
.intro .pop { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.2); animation: pop .35s cubic-bezier(.3,1.6,.5,1) var(--d) forwards; }
.intro-word { --ls: .5em; font-family: var(--display); font-size: clamp(2.4rem, 9vw, 4.4rem); letter-spacing: .5em; margin-right: -.5em; color: var(--bright); line-height: 1; margin-top: 2.2rem; opacity: 0; animation: word-in 1s cubic-bezier(.2,.7,.2,1) 2.3s forwards; }
.intro-skip { position: absolute; bottom: 1.6rem; left: 0; right: 0; text-align: center; color: var(--dim); font-size: .95rem; letter-spacing: .08em; opacity: 0; animation: fade-in .6s ease .9s forwards; }
.intro.done { animation: intro-out .45s ease forwards; }
.intro.gone { display: none; }
@keyframes draw { 0% { opacity: 1; stroke-dashoffset: 1; } 100% { opacity: 1; stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes pop { to { opacity: 1; transform: scale(1); } }
@keyframes word-in { from { opacity: 0; letter-spacing: calc(var(--ls) + .4em); margin-right: calc(-1 * var(--ls) - .4em); } to { opacity: 1; letter-spacing: var(--ls); margin-right: calc(-1 * var(--ls)); } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
.intro-seen .intro { display: none; }


@media (max-width: 900px) {
}
@media (max-width: 620px) {
  .hero { min-height: calc(100vh - 4.2rem); min-height: calc(100svh - 4.2rem); }
  .hero-inner { padding-top: 3.5rem; padding-bottom: 2.2rem; gap: 1rem; }
  .hero-art img { object-position: 22% 30%; }
  .hero-sub { font-size: 1.12rem; margin-top: .8rem; }
  .hero .btn-row { margin-top: 1.5rem; gap: .6rem; }
  .hero .btn-row { flex-direction: column; align-items: stretch; }
  .hero .btn-row .btn { text-align: center; }
  .intro-emblem { height: min(44vh, 18rem); }
  .intro-word { --ls: .34em; }
}
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}
@media (max-width: 620px) {
  .explore a { padding: 1.4rem 0 1.5rem; }
  .explore a:hover { background: none; }
}
