/* Shared look for every page: espresso background, cream text, terracotta accent, EB Garamond (see style-guide.md) */
:root {
  --espresso: #2B2420;
  --espresso-raised: #362E29;
  --gown: #15100D;
  --cream: #FBF6EE;
  --cream-soft: #D9CFC2;
  --line: #4A3F38;
  --terracotta: #D4B483;  /* the highlight color: champagne gold (was terracotta #E07A5F; the name stays so old rules keep working) */
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0;
  background: var(--espresso);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.6;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--terracotta); text-underline-offset: 3px; }
em, i { font-style: italic; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 32px; } }

.note {
  background: var(--espresso-raised); color: var(--cream-soft);
  font-size: 1rem; font-style: italic; text-align: center; padding: 8px 12px;
}

/* Top bar */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 24px; padding-block: 18px;
}
.wordmark {
  color: var(--cream); text-decoration: none; font-weight: 400;
  letter-spacing: .01em; font-size: 1.85rem; line-height: 1; white-space: nowrap;
}
.wordmark:hover { color: var(--terracotta); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-nav a {
  color: var(--cream-soft); text-decoration: none; font-size: 1.05rem; letter-spacing: .06em;
  padding-block: 2px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--cream); border-color: var(--terracotta); }
.site-nav a[aria-current="page"] { color: var(--terracotta); border-color: var(--terracotta); }

/* Page opener */
.opener { padding-block: 56px 32px; }
.kicker {
  display: block; margin: 0 0 8px; font-size: 1rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--terracotta);
}
h1, h2, h3 { font-weight: 500; line-height: 1.1; margin: 0; text-wrap: balance; }
.opener h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
.opener .lede { margin: 16px 0 0; max-width: 40ch; font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-style: italic; color: var(--cream-soft); line-height: 1.4; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 20px; }
h3 { font-size: 1.6rem; margin-bottom: 4px; }
p { margin: 0 0 18px; }
.prose p { max-width: 64ch; }
.muted { color: var(--cream-soft); }
.ph { color: var(--cream-soft); font-style: italic; }

section.block { padding-block: 48px; border-top: 1px solid var(--line); }

/* Pull quote */
.quote {
  margin: 0; padding-block: 8px; max-width: 30ch;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.25; font-style: italic;
}
.prose .quote { margin-bottom: 32px; }
.quote::before { content: "“"; color: var(--terracotta); }
.quote::after { content: "”"; color: var(--terracotta); }

/* Photo with caption */
figure { margin: 0; }
figcaption { margin-top: 8px; font-size: 1rem; font-style: italic; color: var(--cream-soft); }

/* Two columns: media beside text; flips with .flip; stacks on phones */
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 820px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
  .split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split.flip > :first-child { order: 2; }
  .split .sticky { position: sticky; top: 24px; }
}

/* Projects: title, place, date, description, with media beside */
.project { display: grid; gap: 20px; padding-block: 32px; border-top: 1px solid var(--line); }
.project:first-child { border-top: 0; }
@media (min-width: 820px) { .project.has-media { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; } }
.meta { display: block; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-soft); margin-bottom: 10px; }
.project p { max-width: 60ch; }

/* Simple list of rows */
.rows { list-style: none; margin: 0; padding: 0; display: grid; }
.rows li { display: grid; gap: 2px 24px; padding-block: 14px; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .rows li { grid-template-columns: 11rem 1fr; } }
.rows .k { color: var(--cream-soft); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
.rows .v small { display: block; color: var(--cream-soft); font-size: 1rem; }

/* Video cards */
.videos { display: grid; gap: 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.video-card video, .video-card iframe, .video-card .yt, .video-card .soon {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--gown); border: 1px solid var(--line);
}
.video-card .soon {
  display: grid; place-items: center; text-align: center; padding: 16px;
  color: var(--cream-soft); font-style: italic; font-size: 1.05rem;
  background: radial-gradient(circle at 50% 40%, rgba(212,180,131,.10), transparent 70%), var(--gown);
}
/* YouTube preview (yt.js): picture + play button until clicked */
.yt { position: relative; overflow: hidden; }
.yt iframe { display: block; width: 100%; height: 100%; border: 0; }
.yt button { all: unset; position: absolute; inset: 0; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .3s; filter: brightness(.85); }
.yt-play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: rgba(43,36,32,.72); border: 1.5px solid var(--terracotta); transition: background .2s;
}
.yt-play::after {
  content: ""; position: absolute; left: 26px; top: 20px;
  border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent var(--cream);
}
.yt button:hover img, .yt button:focus-visible img { transform: scale(1.03); filter: brightness(1); }
.yt button:hover .yt-play, .yt button:focus-visible .yt-play { background: var(--terracotta); }
.yt button:focus-visible { outline: 1px dashed var(--terracotta); outline-offset: -4px; }
.video-card h3 { margin-top: 14px; font-size: 1.4rem; font-style: italic; }
.video-card p { margin: 2px 0 0; font-size: 1.05rem; color: var(--cream-soft); }
.tag { font-size: .85rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta); }

/* Buttons */
.button {
  display: inline-block; padding: 10px 22px; border: 1px solid var(--terracotta);
  color: var(--cream); text-decoration: none; letter-spacing: .08em; font-size: 1.05rem;
  transition: background .2s, color .2s;
}
.button:hover, .button:focus-visible { background: var(--terracotta); color: var(--gown); }

/* Instagram profile preview card (contact page) */
.ig-card {
  display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 16px 18px;
  background: var(--espresso-raised); border: 1px solid var(--line); border-radius: 14px;
  color: var(--cream); text-decoration: none; transition: border-color .2s, transform .2s;
}
.ig-card:hover, .ig-card:focus-visible { border-color: var(--terracotta); transform: translateY(-2px); }
.ig-avatar {
  width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px var(--espresso-raised), 0 0 0 4px var(--terracotta);
}
.ig-text { display: grid; min-width: 0; flex: 1; }
.ig-handle { font-weight: 600; font-size: 1.2rem; overflow-wrap: anywhere; }
.ig-name { font-size: 1rem; color: var(--cream-soft); }
.ig-follow {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 1rem; letter-spacing: .04em; color: var(--terracotta);
}
@media (max-width: 480px) { .ig-card { flex-wrap: wrap; } .ig-follow { width: 100%; } }
/* smaller card that sits inside a row of the contact list */
.ig-card.small { margin-top: 0; gap: 12px; padding: 8px 12px; border-radius: 12px; }
.ig-card.small .ig-avatar { width: 42px; height: 42px; box-shadow: 0 0 0 2px var(--espresso-raised), 0 0 0 3px var(--terracotta); }
.ig-card.small .ig-handle { font-size: 1.02rem; line-height: 1.25; }
.ig-card.small .ig-name { font-size: .85rem; line-height: 1.3; }
.ig-card.small .ig-follow { font-size: .9rem; gap: 5px; }
@media (max-width: 480px) { .ig-card.small { flex-wrap: nowrap; } .ig-card.small .ig-follow { width: auto; } }

/* Footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 32px; }
.site-foot .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 28px 40px; font-size: 1rem; color: var(--cream-soft);
}
.site-foot a { color: var(--cream-soft); }
.site-foot a:hover { color: var(--terracotta); }
/* Instagram and LinkedIn icons beside "Get in touch" */
.foot-links { display: inline-flex; align-items: center; gap: 18px; }
.site-foot .social { display: inline-flex; color: var(--cream-soft); transition: color .2s, transform .2s; }
.site-foot .social:hover, .site-foot .social:focus-visible { color: var(--terracotta); transform: translateY(-1px); }
.site-foot .social:focus-visible { outline: 1px dashed var(--terracotta); outline-offset: 3px; }
.rows li:has(.ig-card.small) { align-items: center; }
.rows li:has(.ig-card.small) .k { padding-top: 0; }
