/* sebastiaangamelkoorn.nl. One small stylesheet, no framework. */

@font-face { font-family: "Tiempos Text"; src: url("../fonts/tiempos-text-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --bg: #FEFEFE;
  --ink: #000000;
  --muted: #55524D;
  --muted-2: #6B6760;
  --line: #E2E0DC;
  --chip: #ECECEA;
  --footer: #EAEAEA;
  --footer-ink: #3D3A36;
  --accent: #F2B33D;
  --live: #1DB977;
  --serif: "Tiempos Text", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --logo: "Inter Tight", "Inter", system-ui, sans-serif;
  --pad: 32px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.3;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: none; transition: opacity .2s ease; }
a:hover { opacity: .6; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.arrow { font-size: .75em; margin-left: 2px; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 22px; padding-bottom: 22px; font-size: 15px; font-weight: 500; }
.site-header .nav-left { justify-self: start; }
.site-header .nav-right { justify-self: end; display: flex; gap: 22px; }
.logo { font-family: var(--logo); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-transform: uppercase; line-height: 1; }
.menu-button { display: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); background: none; border: 0; padding: 0; min-width: 44px; min-height: 44px; align-items: center; justify-content: flex-end; cursor: pointer; }
a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.logo[aria-current="page"] { text-decoration: none; }

/* Mobile menu */
.menu { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: flex; flex-direction: column; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.menu-main { padding: 40px 20px 0; display: flex; flex-direction: column; }
.menu-main a { font-family: var(--serif); font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; padding: 10px 0; border-bottom: 1px solid var(--line); }
.menu-group { padding: 36px 20px 0; display: flex; flex-direction: column; gap: 4px; }
.menu-group a { font-size: 18px; font-weight: 500; padding: 8px 0; }
.menu-foot { margin-top: auto; padding: 24px 20px 28px; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); }
.menu-status { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--footer-ink); }
.no-scroll { overflow: hidden; }

/* Type */
.eyebrow { display: block; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1.3; color: var(--ink); }
.label { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.display { display: block; font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; line-height: 1.08; }
.lead { margin: 0; max-width: 560px; font-size: 20px; line-height: 1.45; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; font-size: 18px; font-weight: 500; }

/* Home hero */
.home-hero { padding-top: 56px; padding-bottom: 112px; display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.home-hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 80px); line-height: 1.08; letter-spacing: -0.025em; }

/* Home tiles */
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 64px; }
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: #D9D6D0; }
.tile:hover { opacity: 1; }
.tile picture, .tile img { width: 100%; height: 100%; }
.tile img { object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile:hover img { transform: scale(1.025); }
.tile-tall { grid-row: span 2; min-height: 520px; }
.tile-tall img { position: absolute; inset: 0; }
.tile-wide { aspect-ratio: 472 / 313; }
.tile-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.5) 100%); pointer-events: none; }
.tile-label { position: absolute; left: 20px; bottom: 20px; color: #fff; font-size: 15px; font-weight: 600; }
.tile-label .sep { font-weight: 400; opacity: .6; margin: 0 7px; }
.tile-label .desc { font-weight: 500; opacity: .8; }

/* Landing pages */
.page-hero { padding-top: 72px; padding-bottom: 80px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.page-hero h1 { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 24px; font-weight: 400; }
.page-hero .display { max-width: 820px; font-size: clamp(40px, 4.8vw, 64px); }
.page-hero .site-link { font-size: 16px; font-weight: 500; }
.media { width: 100%; border-radius: var(--radius); background: #E6E4E0; object-fit: cover; }
.media-wide { aspect-ratio: 3 / 2; }
.media-portrait { aspect-ratio: 4 / 5; }
.text-block { max-width: 560px; margin: 0 auto; padding: 112px 0; display: flex; flex-direction: column; gap: 16px; text-align: center; }
.text-block h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.2; letter-spacing: -0.01em; }
.text-block p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--muted); }
.text-block p a { text-decoration: underline; text-underline-offset: 3px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* Portfolio tiles */
.project { position: relative; aspect-ratio: 10 / 9; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.project-meta { position: absolute; left: 20px; top: 18px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.3; }
.project-meta strong { font-weight: 600; }
.project-meta span { color: #4A4742; }
.project .shot { width: 72%; margin-top: 24px; border-radius: 3px; box-shadow: 0 18px 40px rgba(0,0,0,.18); background: #fff; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.project .shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; border-radius: 3px; }
a.project:hover { opacity: 1; }
a.project:hover .shot { transform: translateY(-4px); }

/* About */
.about-text { display: flex; flex-wrap: wrap; gap: 40px 64px; padding-top: 112px; }
.about-text > h2 { flex: 1 1 220px; margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.2; letter-spacing: -0.01em; }
.about-sections { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 72px; }
.about-sections section { display: flex; flex-direction: column; gap: 16px; }
.about-sections h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.2; letter-spacing: -0.01em; }
.about-sections p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--muted); }
.chip { color: var(--ink); background: var(--chip); border-radius: var(--radius); padding: 3px 8px; white-space: nowrap; text-decoration: underline; text-decoration-color: rgba(0,0,0,.3); text-underline-offset: 3px; }
.about-sections .chips { line-height: 2; }

/* Contact */
.contact-list { max-width: 720px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.contact-row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); }
.contact-row .value { font-family: var(--serif); font-size: 28px; letter-spacing: -0.01em; overflow-wrap: anywhere; }

/* Footer */
.site-footer { margin-top: auto; background: var(--footer); overflow: hidden; }
.spacer { height: 96px; }
.footer-inner { padding-top: 36px; display: flex; flex-direction: column; gap: 28px; }
.status { display: flex; flex-wrap: wrap; gap: 16px 22px; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--footer-ink); }
.live { display: inline-flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; }
.wordmark-box { container-type: inline-size; width: 100%; }
.wordmark { margin: 0 0 -0.2em; font-family: var(--logo); font-weight: 800; font-size: 16.9cqw; line-height: .9; text-transform: uppercase; text-align: center; letter-spacing: -0.04em; white-space: nowrap; }

/* Floating pill */
.pill { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 10; display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); padding: 12px 20px; border-radius: 999px; box-shadow: 0 6px 24px rgba(0,0,0,.12); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: box-shadow .2s ease; }
.pill:hover { opacity: 1; box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.pill .dot { background: var(--accent); }

/* Responsive */
@media (max-width: 720px) {
  :root { --pad: 20px; }
  .site-header { grid-template-columns: 1fr auto; padding-top: 12px; padding-bottom: 12px; position: sticky; top: 0; z-index: 20; background: var(--bg); }
  .site-header .logo { grid-column: 1; grid-row: 1; justify-self: start; }
  .site-header .nav-left, .site-header .nav-right { display: none; }
  .menu-button { display: inline-flex; grid-column: 2; grid-row: 1; }
  .home-hero { padding-top: 40px; padding-bottom: 56px; gap: 24px; }
  .avatar { width: 80px; height: 80px; }
  .home-hero h1 { font-size: 38px; }
  .links { gap: 18px; font-size: 16px; }
  .home-grid { grid-template-columns: 1fr; gap: 12px; padding-bottom: 48px; }
  .tile-tall { grid-row: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .tile-wide { aspect-ratio: 3 / 2; }
  .tile-label { left: 14px; bottom: 12px; font-size: 14px; }
  .tile-label .sep { margin: 0 6px; }
  .page-hero { padding-top: 40px; padding-bottom: 48px; }
  .lead { font-size: 18px; }
  .text-block { padding: 72px 0; }
  .text-block h2, .about-text > h2, .about-sections h3 { font-size: 26px; }
  .pair { grid-template-columns: 1fr; gap: 12px; }
  .about-text { padding-top: 72px; }
  .about-sections { gap: 48px; }
  .contact-row .value { font-size: 22px; }
  .spacer { height: 64px; }
  .footer-inner { padding-top: 28px; gap: 20px; }
  .status { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 11px; }
}
@media (min-width: 721px) and (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
  .tile-tall { grid-row: auto; min-height: 0; aspect-ratio: 4 / 5; }
}

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