/* Expedition Serendip: the journal.
   Plain white, Helvetica, one burnt orange, Georgia italic for the accent lines.
   Same palette and type as the landing page and the Blueprint (v0.5). */

:root {
  --ink: #111;
  --body: #2b2b2b;
  --muted: #5b5b5b;
  --faint: #8a8a8a;
  --line: #e7e4de;
  --orange: #cc5500;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  /* Ghost's Design settings can override the fonts; by default it is Helvetica throughout. */
  --font-body: var(--gh-font-body, var(--sans));
  --font-head: var(--gh-font-heading, var(--sans));
  --wrap: 1120px;
  --narrow: 700px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--body); font: 400 1rem/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-head); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 10; padding: 0.6rem 1rem; background: #fff; }
.skip:focus { left: 0; }

/* Faint topographic ground behind everything, the same idea as the landing page. */
.ground {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='1100'%3E%3Cg fill='none' stroke='%23111' stroke-opacity='0.05' stroke-width='1'%3E%3Cpath d='M0 140 C300 90 600 190 900 140'/%3E%3Cpath d='M0 235 C240 295 660 175 900 235'/%3E%3Cpath d='M0 330 C320 285 580 375 900 330'/%3E%3Cpath d='M0 440 C260 495 640 385 900 440'/%3E%3Cpath d='M0 565 C300 505 600 625 900 565'/%3E%3Cpath d='M0 705 C280 750 620 660 900 705'/%3E%3Cpath d='M0 855 C320 800 580 910 900 855'/%3E%3Cpath d='M0 1005 C240 1055 660 955 900 1005'/%3E%3C/g%3E%3Cg fill='none' stroke='%23cc5500' stroke-opacity='0.08' stroke-width='1'%3E%3Cpath d='M0 385 C300 435 600 335 900 385'/%3E%3Cpath d='M0 780 C260 725 640 835 900 780'/%3E%3C/g%3E%3C/svg%3E") repeat;
  background-size: 900px auto;
}

/* Header */
.site-header { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: var(--wrap); margin: 0 auto; padding: 1.2rem 1.25rem; }
.brand img { width: 170px; max-width: 46vw; height: auto; }
.nav-link { margin-left: 1.6rem; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--ink); transition: color 0.3s; }
.nav-link:hover, .nav-link.is-current { color: var(--orange); }

.site-main { position: relative; z-index: 1; min-height: 60vh; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 1.25rem; }

.eyebrow { margin: 0 0 0.6rem; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--orange); }
.eyebrow a { text-decoration: none; }

/* Home hero */
.hero { padding: clamp(1rem, 4vw, 2.6rem) 1.25rem clamp(1.6rem, 4vw, 3rem); text-align: center; }
.hero-leopard { width: min(560px, 78vw); height: auto; margin: 0 auto; }
.hero h1 { margin: 1.1rem 0 0; font-weight: 300; font-size: clamp(1.8rem, 4.5vw, 2.8rem); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.lede { max-width: 34rem; margin: 0.8rem auto 0; font: italic 1.2rem/1.5 var(--serif); color: var(--muted); }
.rule { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin-top: 1.6rem; }
.rule i { display: block; width: 3.5rem; height: 1px; background: var(--line); }
.rule b { display: block; width: 6px; height: 6px; background: var(--orange); transform: rotate(45deg); }

/* Post feed */
.feed { display: grid; grid-template-columns: 1fr; gap: clamp(1.8rem, 3vw, 2.6rem) 2rem; padding-bottom: 3rem; }
@media (min-width: 720px) { .feed { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .feed { grid-template-columns: repeat(3, 1fr); } }
.card { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.card-img { display: block; margin-bottom: 1rem; aspect-ratio: 3 / 2; overflow: hidden; background: #f3f1ec; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover .card-img img { transform: scale(1.03); }
.card-title { margin: 0 0 0.5rem; font-weight: 400; font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.card-title a { text-decoration: none; transition: color 0.3s; }
.card-title a:hover { color: var(--orange); }
.card-excerpt { margin: 0 0 0.7rem; font: italic 1rem/1.5 var(--serif); color: var(--muted); }
.card-meta { margin: 0; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }

/* Pagination */
.pagination { display: flex; align-items: baseline; justify-content: center; gap: 1.6rem; padding: 0 1.25rem 3rem; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }
.pagination a { padding-bottom: 0.3em; border-bottom: 1px solid currentColor; color: var(--orange); text-decoration: none; }
.page-num { font-weight: 400; color: var(--faint); }

/* Topic and author pages */
.archive-head { padding: clamp(1.4rem, 5vw, 3rem) 1.25rem 2rem; text-align: center; }
.archive-head h1 { margin: 0; font-weight: 300; font-size: clamp(1.8rem, 4.5vw, 2.6rem); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }

/* Article */
.article-head { padding-top: clamp(1.4rem, 5vw, 3.2rem); padding-bottom: 1.4rem; }
.article-title { margin: 0; font-weight: 300; font-size: clamp(2rem, 5.2vw, 3.2rem); line-height: 1.08; letter-spacing: -0.015em; color: var(--ink); }
.dek { margin: 1rem 0 0; font: italic 1.3rem/1.45 var(--serif); color: var(--muted); }
.byline { margin: 1.2rem 0 0; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.byline a { color: var(--ink); text-decoration: none; }
.feature { max-width: 1040px; margin: 1.2rem auto 2rem; padding: 0 1.25rem; }
.feature img { width: 100%; }
.feature figcaption, .gh-content figcaption { margin-top: 0.6rem; text-align: center; font: italic 0.85rem/1.4 var(--serif); color: var(--muted); }

.gh-content { max-width: var(--narrow); margin: 0 auto; padding: 0 1.25rem 3rem; font-size: 1.1rem; line-height: 1.75; color: #222; }
.gh-content > * + * { margin-top: 1.4rem; }
.gh-content h2 { margin-top: 2.6rem; font-weight: 400; font-size: 1.7rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.gh-content h3 { margin-top: 2rem; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.gh-content a { color: var(--orange); text-underline-offset: 0.2em; }
.gh-content blockquote { margin-left: 0; padding-left: 1.2rem; border-left: 2px solid var(--orange); font: italic 1.25rem/1.55 var(--serif); color: var(--muted); }
.gh-content hr { height: 1px; margin: 2.4rem 0; border: 0; background: var(--line); }
.gh-content ul, .gh-content ol { padding-left: 1.3rem; }
.gh-content li + li { margin-top: 0.4rem; }
.gh-content figure { margin-left: 0; margin-right: 0; }
.gh-content img { margin: 0 auto; }

/* Ghost editor width classes (required by every theme) */
.kg-width-wide { position: relative; left: 50%; width: min(1040px, 92vw); transform: translateX(-50%); }
.kg-width-full { position: relative; left: 50%; width: 100vw; transform: translateX(-50%); }
.kg-width-full img { width: 100%; }

.more { padding-top: 2rem; padding-bottom: 1rem; border-top: 1px solid var(--line); }
.more > .eyebrow { margin-bottom: 1.6rem; text-align: center; }

/* Footer */
.site-footer { position: relative; z-index: 1; margin-top: 2rem; padding: 2rem 1.25rem 2.4rem; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.85); text-align: center; }
.site-footer .mark { width: 150px; height: auto; margin: 0 auto 1rem; }
.site-footer p { margin: 0.3rem 0; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.site-footer a { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-color: rgba(17, 17, 17, 0.3); }
.site-footer a:hover { text-decoration-color: currentColor; }

/* 404 and other errors */
.error { padding: 4rem 1.25rem 5rem; text-align: center; }
.error h1 { margin: 0; font-weight: 300; font-size: clamp(3.5rem, 12vw, 7rem); line-height: 1; color: var(--ink); }
.back a { color: var(--orange); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 0.35em; }

/* Subscribe box: appears only when sign-ups are open */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.subscribe { padding-top: 2.4rem; padding-bottom: 3.4rem; text-align: center; border-top: 1px solid var(--line); }
.subscribe-title { margin: 0; font-weight: 300; font-size: clamp(1.5rem, 3.6vw, 2rem); letter-spacing: -0.01em; color: var(--ink); }
.subscribe-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; max-width: 30rem; margin: 1.6rem auto 0; }
.subscribe-form input { flex: 1 1 14rem; min-width: 0; padding: 0.85rem 1rem; border: 1px solid #cfcac1; border-radius: 0; background: #fff; font: inherit; color: var(--ink); }
.subscribe-form input:focus { border-color: var(--orange); outline: none; }
.subscribe-form button { padding: 0.85rem 1.5rem; border: 1px solid var(--orange); border-radius: 0; background: var(--orange); color: #fff; font: 700 0.75rem/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; transition: background 0.3s, color 0.3s; }
.subscribe-form button:hover { background: #fff; color: var(--orange); }
.subscribe-form .s-loading, .subscribe-form.loading .s-default { display: none; }
.subscribe-form.loading .s-loading { display: inline; }
.subscribe-form .msg { flex-basis: 100%; margin: 0.2rem 0 0; font: italic 0.95rem/1.4 var(--serif); }
.subscribe-form .msg-ok { display: none; color: var(--muted); }
.subscribe-form.success .msg-ok { display: block; }
.subscribe-form.success input, .subscribe-form.success button { display: none; }
.subscribe-form .msg-err { color: #b3261e; }
.subscribe-form .msg-err:empty { display: none; }

@media (max-width: 560px) { .nav-link { margin-left: 1rem; } }
