/* ─────────────────────────────────────────────
   VEGVÍSIR — journal (placeholder newsletter page)
   One long column of issues, each a big headline, an image and the text.
   ───────────────────────────────────────────── */

:root {
  --paper: #FAFAF8;
  --cream: #F5F5F2;
  --ink: #1F1F1E;
  --ink-2: #6E6E6A;
  --m: clamp(16px, 2.6vw, 44px);
  --r: 22px;
  --hd: 84px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: "Montserrat", system-ui, sans-serif; font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
figure, h1, h2, p, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* header: the same white bar, logo debossed */
.jh {
  position: sticky; top: 0; z-index: 10; height: var(--hd);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--m); background: var(--paper); color: #E8E8E2;
}
.jh__brand { display: flex; align-items: center; gap: 16px; }
.jh__mark { width: 50px; height: 50px; --vgw: 1.3; } /* small size: thicken every line evenly so it holds */
.jh__name { height: 19px; width: auto; aspect-ratio: 10704 / 920; }
.jh__mark, .jh__name { filter: drop-shadow(0 -1px 0 #C9C9C2) drop-shadow(0 1px 0 #fff); }
.jh__back { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.jh__back:hover { color: var(--ink); }

/* column */
.journal { max-width: 1100px; margin: 0 auto; padding: 0 var(--m) 120px; }
.journal__intro { padding: clamp(80px, 12vw, 160px) 0 clamp(40px, 6vw, 80px); }
.journal__title {
  font-size: clamp(44px, 7.4vw, 112px); font-weight: 600; line-height: 1; letter-spacing: -0.05em;
  max-width: 11em; margin: 18px 0 24px;
}
.post { padding-top: clamp(64px, 9vw, 140px); }
.post + .post { margin-top: clamp(40px, 6vw, 80px); }
.post__meta {
  display: flex; gap: 18px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
}
.post__title {
  font-size: clamp(40px, 6.4vw, 96px); font-weight: 600; line-height: 1.02; letter-spacing: -0.045em;
  margin: 16px 0 18px; max-width: 12em;
  /* debossed white-on-white, like the site's titles */
  color: #D8D8D3; text-shadow: 0 -1px 0 rgba(31,31,30,.3), 0 1.2px 0 #fff;
}
.post__dek { font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; line-height: 1.5; max-width: 32em; color: var(--ink-2); }
.post__media { margin: clamp(32px, 4vw, 56px) 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; }
/* the photo opens from a smaller window as it arrives, then drifts slowly inside the frame while scrolling */
.js .post__media { clip-path: inset(10% 8% round var(--r)); transition: opacity 0.9s ease, transform 1s var(--ease), clip-path 1.6s var(--ease); }
.js .post__media.is-in { clip-path: inset(0 0 round var(--r)); }
.post__media img {
  width: 100%; height: 100%; object-fit: cover; will-change: transform;
  transform: translate3d(0, var(--py, 0px), 0) scale(var(--z, 1.14));
}
@media (prefers-reduced-motion: reduce) { .js .post__media { clip-path: none; } .post__media img { transform: none; } }
/* the text runs the full width of the lead photo, edge to edge, a touch larger so long lines stay easy to read */
.post__body { max-width: none; margin: 0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.8; }
.post__body p + p { margin-top: 1.2em; }
.post__body blockquote {
  margin: 1.6em 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; line-height: 1.3; letter-spacing: -0.02em;
}
.journal__end {
  margin-top: clamp(96px, 12vw, 180px); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 13px; letter-spacing: 0.06em; color: var(--ink-2);
}
.journal__end a { font-weight: 600; color: var(--ink); }

/* sign-up form (used inside the pop-up) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pop__title { font-size: clamp(32px, 4.6vw, 64px); font-weight: 600; line-height: 1.05; letter-spacing: -0.04em; margin: 14px 0 12px; max-width: 14em; }
.notify__form {
  position: relative; margin-top: 28px; display: flex; align-items: center; gap: 12px;
  width: min(100%, 620px); background: var(--cream); border-radius: 999px; padding: 8px 8px 8px 28px;
}
.notify__form input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: 17px; font-weight: 500; padding: 14px 0; color: var(--ink); }
.notify__form button {
  border: 0; cursor: pointer; border-radius: 999px; background: var(--ink); color: var(--paper);
  padding: 16px 28px; font: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
}
.notify__form button:hover { background: #000; }
.notify__msg { position: absolute; left: 28px; top: calc(100% + 14px); margin: 0; font-size: 14px; color: var(--ink-2); }

/* pop-up */
.pop {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px;
  background: rgba(31, 31, 30, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease;
}
.pop[hidden] { display: none; }
.pop.is-open { background: rgba(31, 31, 30, 0.28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pop__card {
  position: relative; width: min(100%, 560px); padding: clamp(28px, 4vw, 48px); border-radius: var(--r);
  background: var(--paper); box-shadow: 0 30px 80px -30px rgba(31,31,30,.35);
  opacity: 0; transform: translateY(24px) scale(0.98); transition: opacity 0.5s ease, transform 0.6s var(--ease);
}
.pop.is-open .pop__card { opacity: 1; transform: none; }
.pop__title { font-size: clamp(28px, 3.4vw, 40px); }
.pop__text { color: var(--ink-2); max-width: 28em; }
.pop__close {
  position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border: 0; background: none; cursor: pointer;
  font-size: 28px; line-height: 1; color: var(--ink-2);
}
.pop__close:hover { color: var(--ink); }
.pop__later {
  display: block; margin-top: 44px; border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-2);
}
.pop__later:hover { color: var(--ink); }

/* rise-in */
.js [data-in] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 1s var(--ease); }
.js [data-in].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-in] { opacity: 1; transform: none; transition: none; } }

@media (max-width: 760px) {
  :root { --hd: 68px; }
  .jh__mark { width: 42px; height: 42px; }
  .jh__name { height: 16px; }
  .post__body { margin-right: 0; }
  .notify__form { flex-wrap: wrap; border-radius: 22px; padding: 8px; }
  .notify__form input { padding: 14px 16px; flex-basis: 100%; }
  .notify__form button { width: 100%; }
  .notify__msg { left: 16px; }
}

/* ─────────────────────────────────────────────
   Real newsletter issues (Sensing the Way): section headings, in-text photos,
   pull quotes and the author sign-off, in the same type and colours as the site
   ───────────────────────────────────────────── */
.post__body h3 {
  margin: 2.4em 0 0.8em; font-size: clamp(22px, 2vw, 28px); font-weight: 600; line-height: 1.2; letter-spacing: -0.03em;
}
.post__body h3 + p { margin-top: 0; }
.post__body blockquote::before {
  content: ""; display: block; width: 40px; height: 2px; margin-bottom: 18px; background: var(--ink);
}
.post__body blockquote + p, .post__body blockquote + h3 { margin-top: 0; }
.post__fig { margin: 2.2em 0; }
.post__fig img { width: 100%; border-radius: var(--r); }
.post__fig figcaption { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.post__fig figcaption a { text-decoration: underline; text-underline-offset: 2px; }
.post__fig + p { margin-top: 0; }
.post__body p.post__sign {
  margin-top: 2.6em; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
}
.post { scroll-margin-top: calc(var(--hd) + 32px - clamp(64px, 9vw, 140px)); }  /* links from the home page land below the sticky header */

/* pop-up: a photo banner with the studio logo on top, then the newsletter name */
.pop__card { overflow: hidden; }
.pop__hero {
  position: relative; margin: calc(clamp(28px, 4vw, 48px) * -1) calc(clamp(28px, 4vw, 48px) * -1) 28px;
  height: clamp(150px, 22vh, 210px);
}
.pop__hero img { width: 100%; height: 100%; object-fit: cover; }
.pop__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(31,31,30,.38), rgba(31,31,30,0) 65%); }
.pop__brand {
  position: absolute; z-index: 1; left: clamp(28px, 4vw, 48px); bottom: 20px;
  display: flex; align-items: center; gap: 12px; color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.25));
}
.pop__mark { width: 40px; height: 40px; --vgw: 1.4; }
.pop__name { height: 15px; width: auto; aspect-ratio: 10704 / 920; }
.pop__close { z-index: 2; background: rgba(250, 250, 248, 0.9); border-radius: 50%; }
.pop__close:hover { background: var(--paper); }
