/* markneyens.com
   Layout: editorial single column on off-white. Oversized bold sans for headlines, tiny spaced capitals for labels,
   one dark green accent. Sections turn like pages: paper, paper, green block, paper, ink footer.
   Deliberately one look in every theme, so every color is set explicitly. */
:root {
  --paper: #F4F4F1;
  --paper-2: #EAEAE5;
  --ink: #121212;
  --ink-2: #4A4A47;
  --ink-3: #7A7A75;
  --rule: #D9D9D3;
  --green: #1D4D38;
  --green-deep: #153A2A;
  --green-soft: #E3ECE6;
  --on-green: #F4F4F1;
  --on-green-2: rgba(244, 244, 241, .74);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.label { font-family: var(--display); font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }

/* Nav */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
nav.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(244, 244, 241, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.mono { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: var(--ink); color: var(--paper); font-family: var(--display); font-weight: 800; font-size: 13px; text-decoration: none; position: relative; }
.mono::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 9px; height: 9px; background: var(--green); }
nav.top ul { list-style: none; display: flex; gap: clamp(18px, 4vw, 40px); margin: 0; padding: 0; }
nav.top a.l { text-decoration: none; position: relative; padding: 6px 0; font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
nav.top a.l::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
nav.top a.l:hover::after, nav.top a.l[aria-current="true"]::after { transform: scaleX(1); }

/* Buttons and links */
.ctas { display: flex; gap: 14px 30px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; padding: 15px 22px; background: var(--green); color: var(--on-green); transition: background .2s; }
.btn:hover { background: var(--green-deep); }
.arrow { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; padding: 6px 0; }
.btn i, .arrow i { display: inline-block; width: 30px; height: 1.5px; background: currentColor; position: relative; transition: width .25s; }
.btn i::after, .arrow i::after { content: ""; position: absolute; right: 0; top: -3.5px; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.btn:hover i, .arrow:hover i { width: 44px; }
@media (prefers-reduced-motion: reduce) { .btn i, .arrow i, nav.top a.l::after { transition: none; } }

/* Browser frame */
.frame { background: #fff; border: 1px solid var(--rule); box-shadow: 0 30px 70px rgba(18, 18, 18, .14), 0 4px 14px rgba(18, 18, 18, .06); }
.frame .bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.frame .bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); flex: none; }
.frame .bar .url { margin-left: 12px; font-size: 12px; color: var(--ink-3); width: auto; height: auto; background: none; border-radius: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame .shots { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.frame .shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .9s ease; }
.frame .shots img.on { opacity: 1; }
.frame > img { width: 100%; }
@media (prefers-reduced-motion: reduce) { .frame .shots img { transition: none; } }

/* Section shells */
section { padding-block: clamp(64px, 9vw, 128px); }
.green-block { background: var(--green); color: var(--on-green); }
.green-block .label { color: var(--on-green-2); }
.section-label { color: var(--green); display: block; margin-bottom: 22px; }

footer.site { background: var(--ink); color: #A9A9A3; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 13px; }
footer.site a { color: #E6E6E1; }

/* Load-in */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .rise.d2 { animation-delay: .1s; } .rise.d3 { animation-delay: .2s; } .rise.d4 { animation-delay: .32s; }
  @keyframes rise { from { opacity: .001; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
