/* Atbang's Blog: the list and the post pages, in the landing page's colours and type. */
:root {
  --c-950: #120707;
  --c-900: #1A0B0B;
  --c-800: #2E0808;
  --caramel: #B67F3B;
  --caramel-ink: #7A4E1D;
  --gold: #D1B869;
  --gold-hi: #EBD9A0;
  --paper: #F4F1EA;
  --ink: #272521;
  --ink-soft: #4E4A42;
  --cream-text: #F1E7D6;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --wrap: min(1240px, 100% - 2 * var(--gutter));
  --header: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: clamp(16px, 1.05vw, 18px); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--c-900); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 18px; background: var(--gold); color: var(--c-900); border-radius: 999px; font-weight: 500; }
.skip:focus { top: 16px; }
.wrap { width: var(--wrap); margin-inline: auto; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 50; height: var(--header); display: flex; align-items: center; background: rgba(22, 9, 9, .94); box-shadow: 0 1px 0 rgba(209, 184, 105, .14); }
.hdr__in { width: var(--wrap); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 46px; height: auto; }
.brand span { font: 500 12px/1.2 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-hi); }
.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.nav a { position: relative; padding: 8px 0; font: 400 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #EADFCB; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--gold-hi); }
.menu-btn { display: none; align-items: center; gap: 12px; padding: 10px 0; border: 0; background: none; cursor: pointer; font: 500 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-hi); }
@media (max-width: 1120px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: var(--header); flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 24px; background: var(--c-800); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 14px; border-bottom: 1px solid rgba(209, 184, 105, .14); }
}

/* Title band */
.band { background: var(--c-900); color: var(--cream-text); padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 88px); }
.band h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(46px, 6.4vw, 96px); line-height: .98; }
.band h1 em { font-style: italic; color: var(--gold); }
.band p { margin-top: 18px; font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); color: rgba(241, 231, 214, .8); }
.band .meta { margin-top: 22px; font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.back { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.back svg { width: 13px; height: 13px; }

/* The list */
.posts { padding: clamp(56px, 7vw, 104px) 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 44px); }
@media (max-width: 999px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.entry a { display: flex; flex-direction: column; gap: 14px; }
.entry__img { aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--c-800); }
.entry__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.entry a:hover .entry__img img { transform: scale(1.05); }
.entry__img--empty { display: grid; place-items: center; }
.entry__img--empty img { width: 72px; height: auto; object-fit: contain; opacity: .7; }
.entry__date { font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--caramel-ink); }
.entry h2 { font-family: var(--serif); font-size: clamp(26px, 2.2vw, 32px); line-height: 1.1; color: var(--c-800); }
.entry p { font-size: 15px; color: var(--ink-soft); }
.state { padding: 24px 0; font-family: var(--serif); font-size: 26px; color: var(--ink-soft); }

/* The post */
.article { padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 8vw, 112px); }
.text { max-width: 44rem; }
.text p { margin-top: 1.1em; font-size: clamp(17px, 1.2vw, 19px); color: var(--ink); }
.text p:first-child { margin-top: 0; font-family: var(--serif); font-size: clamp(22px, 1.9vw, 28px); line-height: 1.4; }
.photos { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
@media (max-width: 899px) { .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.photos a { display: block; border-radius: 18px; overflow: hidden; }
.photos img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 1.2s var(--ease); }
.photos a:hover img { transform: scale(1.04); }
.pager { margin-top: clamp(56px, 7vw, 96px); padding-top: 28px; border-top: 1px solid rgba(39, 37, 33, .16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.pager a { display: flex; flex-direction: column; gap: 6px; max-width: 26rem; }
.pager a:last-child { margin-left: auto; text-align: right; }
.pager span { font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--caramel-ink); }
.pager b { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.15; color: var(--c-800); }

/* Footer */
.foot { background: var(--c-950); color: rgba(241, 231, 214, .66); padding: 36px 0; font-size: 14px; }
.foot__row { width: var(--wrap); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.foot__links a:hover { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
