/* Mario Poje Photography — one-page site. No frameworks, no scripts. */

@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 600; font-display: swap;
  src: url(../fonts/jost.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 600; font-display: swap;
  src: url(../fonts/jost-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0c0c0c;
  --ink-2: #151515;
  --line: #2a2a2a;
  --paper: #f3efe8;
  --muted: #a39e96;
  --faint: #6e6a64;
  --accent: #c9b48a;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 300 1.0625rem/1.7 var(--sans);
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--ink); }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--paper); color: var(--ink); padding: 8px 14px; }

.eyebrow {
  font: 500 .75rem/1 var(--sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.5rem;
}

.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 1rem 1.9rem;
  font: 500 .8125rem/1 var(--sans);
  letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--paper);
  background: var(--paper); color: var(--ink);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover, .btn:focus-visible { background: transparent; color: var(--paper); }
.btn--ghost { background: transparent; color: var(--paper); border-color: rgba(243,239,232,.4); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--paper); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* ---------- Header ---------- */
.top {
  position: absolute; inset: 0 0 auto; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand span { font: 500 .8125rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; }
.nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav a {
  font: 400 .75rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; color: rgba(243,239,232,.75);
  padding: 8px 0; border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover, .nav a:focus-visible { color: var(--paper); border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 72% 25%;
  animation: settle 2.4s cubic-bezier(.2,.7,.2,1) both;
}
/* Slideshow: the second photo fades in over the first and back out, forever.
   5s per photo, .75s crossfade — the same timing as the old site. Pure CSS. */
.hero__img--2 {
  object-position: 52% 35%;
  opacity: 0;
  animation: slide 11.5s ease-in-out infinite;
}
@keyframes slide {
  0%, 43.48%   { opacity: 0; }
  50%, 93.48%  { opacity: 1; }
  100%         { opacity: 0; }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12,12,12,.85) 0%, rgba(12,12,12,.35) 45%, rgba(12,12,12,0) 70%),
    linear-gradient(0deg, rgba(12,12,12,.9) 0%, rgba(12,12,12,0) 40%);
}
@keyframes settle { from { transform: scale(1.06); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
/* Reduce motion: no zoom or slide-up. The slideshow's plain crossfade stays — nothing moves. */
@media (prefers-reduced-motion: reduce) { .hero__img:not(.hero__img--2), .hero__content > * { animation: none !important; } }

.hero__content {
  width: 100%;
  padding: 0 var(--gutter) clamp(64px, 12vh, 128px);
}
.hero__content > * { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
.hero__content > :nth-child(2) { animation-delay: .15s; }
.hero__content > :nth-child(3) { animation-delay: .3s; }
.hero__content > :nth-child(4) { animation-delay: .45s; }

.hero h1 {
  margin: 0;
  font: 100 clamp(3.2rem, 9.5vw, 8rem)/.95 var(--sans);
  letter-spacing: -.02em;
}
.hero__tag {
  margin: 1.25rem 0 2.75rem;
  max-width: 40ch;
  font: 200 clamp(1.15rem, 2.2vw, 1.6rem)/1.4 var(--sans);
  letter-spacing: .02em;
  color: rgba(243,239,232,.85);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- About ---------- */
.section { padding: clamp(88px, 14vw, 168px) var(--gutter); }
.wrap { max-width: var(--max); margin: 0 auto; }

.about .wrap {
  display: grid; gap: clamp(40px, 7vw, 110px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}
.about figure { margin: 0; position: relative; }
.about figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 50%; }
.about figure::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  border: 1px solid var(--line);
}
.about h2, .contact h2 {
  margin: 0;
  font: 200 clamp(2.2rem, 5vw, 4rem)/1.08 var(--sans);
  letter-spacing: -.015em;
}
.about h2 em { color: var(--accent); font-style: normal; }
.about p.lead {
  margin: 1.75rem 0 0; max-width: 44ch;
  color: var(--muted);
}
.loves {
  list-style: none; margin: 2.75rem 0 0; padding: 2rem 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .4rem 0;
}
.loves li {
  font: 200 1.35rem/1.3 var(--sans);
  color: var(--paper);
}
.loves li:not(:last-child)::after { content: "·"; margin: 0 .6em; color: var(--faint); }

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.contact .wrap {
  border-top: 1px solid var(--line);
  padding-top: clamp(72px, 10vw, 128px);
  display: grid; gap: clamp(48px, 7vw, 110px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.contact p.lead { margin: 1.75rem 0 2.5rem; color: var(--muted); max-width: 36ch; }
.social { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.social a {
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--paper);
  font: 400 .8125rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
}
.social svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; }
.social a:hover span, .social a:focus-visible span { border-bottom: 1px solid var(--accent); }

.form { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 10px; }
.field--wide { grid-column: 1 / -1; }
.field label {
  font: 500 .6875rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  width: 100%;
  background: transparent; color: var(--paper);
  border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 0 12px;
  font: 300 1.125rem/1.5 var(--sans);
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--paper); transition: background-color 9999s; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.form__note { margin: 0; font-size: .875rem; color: var(--faint); max-width: 40ch; }
/* Honeypot: invisible to people, irresistible to bots. */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 32px var(--gutter);
}
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.foot p { margin: 0; font-size: .8125rem; letter-spacing: .08em; color: var(--faint); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--paper); }

/* ---------- Message pages (thanks / error / 404) ---------- */
.note-page {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 48px var(--gutter);
}
.note-page img { width: 64px; height: 64px; margin: 0 auto 2.5rem; }
.note-page h1 { margin: 0; font: 100 clamp(2.6rem, 7vw, 4.6rem)/1 var(--sans); letter-spacing: -.02em; }
.note-page p { margin: 1.5rem auto 2.75rem; max-width: 40ch; color: var(--muted); }

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  .about .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .about figure { max-width: 520px; margin-right: 18px; }
  .hero__img { object-position: 66% 30%; }
  .hero__img--2 { object-position: 55% 35%; }
  .hero::after {
    background: linear-gradient(0deg, rgba(12,12,12,.95) 0%, rgba(12,12,12,.55) 45%, rgba(12,12,12,.1) 75%);
  }
}
@media (max-width: 560px) {
  .brand span { display: none; }
  .nav { gap: 20px; }
  .form { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
}
