/* sentoplene.com - plain HTML rebuild of the WordPress (Enfold) look */

@font-face {
  font-family: "Geomanist Ultra";
  src: url("../fonts/geomanist/geomanist-ultra-webfont.woff2") format("woff2"),
       url("../fonts/geomanist/geomanist-ultra-webfont.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #262626;          /* main background, same as old site */
  --bg-deep: #191919;     /* footer / menu panel */
  --text: #ffffff;        /* titles */
  --text-soft: #bdbdbd;   /* body text */
  --tag-bg: #e3e3e3;      /* light grey "buttons" */
  --tag-text: #262626;
  --line: #3a3a3a;
  --gutter: clamp(1rem, 4vw, 3rem);
  --display: "Geomanist Ultra", "Arial Black", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-soft);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; display: block; }

a { color: inherit; }

/* ---------- HEADER ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--gutter);
  pointer-events: none; /* only logo + burger catch clicks */
}

.logo {
  pointer-events: auto;
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: -0.033em;
  color: var(--text);
  text-decoration: none;
  opacity: 0;               /* hidden on top of page, shows once you scroll */
  transition: opacity 0.25s ease;
}
.scrolled .logo { opacity: 1; }

.scrolled .site-header { background: rgba(38, 38, 38, 0.92); }

.burger {
  pointer-events: auto;
  position: relative;
  width: 2.2rem;
  height: 2.2rem;
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 40;
}
.burger span {
  position: absolute;
  left: 0.3rem;
  right: 0.3rem;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}
.burger span:nth-child(1) { top: 0.65rem; }
.burger span:nth-child(2) { top: 1.05rem; }
.burger span:nth-child(3) { top: 1.45rem; }
.menu-open .burger span:nth-child(1) { top: 1.05rem; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { top: 1.05rem; transform: rotate(-45deg); }

/* ---------- SLIDE-IN MENU (like Enfold's burger panel) ---------- */

.menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 85vw);
  background: var(--bg-deep);
  z-index: 35;
  display: flex;
  align-items: center;
  padding: 4rem 2.5rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.menu-open .menu { transform: translateX(0); }

.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { margin: 0.15rem 0; }
.menu ul ul { margin: 0.1rem 0 0.4rem 1rem; }

.menu a {
  font-family: var(--display);
  color: var(--text);
  text-decoration: none;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.menu ul ul a { font-size: 1.05rem; color: var(--text-soft); }
.menu a:hover, .menu a.is-active { color: var(--tag-bg); text-decoration: underline; text-underline-offset: 0.2em; }

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 34;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.menu-open .menu-backdrop { opacity: 1; pointer-events: auto; }

/* ---------- TYPE ---------- */

.hero-title,
.big-title,
.cat-title {
  font-family: var(--display);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.033em;
  line-height: 1.05;
  margin: 0;
}

.hero-title { font-size: clamp(3.2rem, 15vw, 9.5rem); }
.big-title  { font-size: clamp(2.6rem, 9vw, 6.25rem); }
.cat-title  { font-size: clamp(1.8rem, 5vw, 3.2rem); margin-bottom: 1.5rem; }

.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-soft);
  max-width: 40rem;
  margin: 1.2rem 0 0;
}
.text { max-width: 40rem; margin: 0 0 1.2rem; }

/* ---------- TAG BUTTONS ---------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.6rem, 2vw, 1.4rem);
  margin-top: 0.6rem;
}
.tags--small { justify-content: flex-start; margin-top: 1.8rem; }

.tag {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 5.5vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--tag-text);
  background: var(--tag-bg);
  border-radius: 3px;
  padding: 0.15em 0.22em 0.08em 0.18em;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.tag:hover { background: var(--text); }
.tag--small { font-size: clamp(1rem, 2.4vw, 1.4rem); }

/* ---------- LAYOUT ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem var(--gutter);
}
.hero--contact .lead { margin: 1rem auto 2rem; }

.section {
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  max-width: 1400px;
  margin: 0 auto;
}
.section.intro { padding-top: clamp(6rem, 14vw, 10rem); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: var(--gutter);
}

.stack { display: grid; gap: clamp(3rem, 8vw, 6rem); }

/* ---------- VIDEO (click to play, no YouTube loaded until then) ---------- */

.video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.video:hover img { transform: scale(1.02); }
.video .play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(3.5rem, 9vw, 6rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
}
.video .play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.9em 0 0.9em 1.5em;
  border-color: transparent transparent transparent var(--bg);
  font-size: clamp(0.7rem, 1.6vw, 1.1rem);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.placeholder {
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: #777;
  font-size: 0.9rem;
}

/* ---------- PHOTOGRAPHY ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--gutter);
}
.card {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #1f1f1f center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  text-decoration: none;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 55%);
  transition: opacity 0.2s ease;
}
.card:hover::before { opacity: 0.4; }
.card-label {
  position: relative;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.photo-hero {
  min-height: 100vh;
  background: #1f1f1f center / cover no-repeat;
  display: flex;
  align-items: flex-start;
  padding: 4.5rem var(--gutter);
}
.photo-hero .big-title { text-shadow: 0 2px 30px rgba(0,0,0,0.35); }

.photos { display: grid; gap: clamp(2rem, 6vw, 5rem); justify-items: center; }
.photo { margin: 0; }
.photo img { max-height: 92vh; width: auto; margin: 0 auto; }

/* ---------- CONTACT BLOCK ---------- */

.contact-block { text-align: center; border-top: 1px solid var(--line); }
.contact-block .lead { margin: 1rem auto 2rem; }

/* ---------- FOOTER ---------- */

.site-footer {
  background: var(--bg-deep);
  color: #8a8a8a;
  font-size: 0.8rem;
  padding: 0.6rem var(--gutter);
}

/* ---------- VIDEO CARDS WITH CAPTION ---------- */

.vcard { margin: 0; }
.vcard figcaption { padding-top: 0.9rem; }
.vcard h3 {
  font-family: var(--display);
  font-weight: 800;
  color: var(--text);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.3rem;
}
.vcard p { margin: 0; font-size: 0.95rem; max-width: 34rem; }

/* ---------- FULL-WIDTH PHOTOS (portraits page for now) ----------
   Each photo gets one full screen. The image is as big as it can be
   inside that screen, with a border of empty space around it.        */

.photos-full { width: 100%; }

.photos-full .photo {
  margin: 0;
  height: 100vh;
  height: 100svh;                      /* svh: ignores the phone's browser bar */
  padding: var(--photo-border, clamp(1rem, 3vw, 2.5rem));
  padding-top: max(4.5rem, var(--photo-border, clamp(1rem, 3vw, 2.5rem)));   /* room for the header */
  display: flex;
  align-items: center;
  justify-content: center;
}

.photos-full .photo img {
  /* fill the whole box, then let the photo scale to fit inside it.
     This also enlarges photos that are smaller than the screen. */
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- OVERVIEW PAGES (film / photography / audio) ----------
   Big "sentoplene", the section name under it, then the sub-pages as tags. */

.hero-sub {
  font-family: var(--display);
  font-weight: 800;
  color: var(--text);
  font-size: clamp(2.2rem, 8vw, 5.5rem);
  letter-spacing: -0.033em;
  line-height: 0.95;
  margin: 0 0 clamp(1rem, 3vw, 2rem);
}

/* ---------- EMAIL + COPY BUTTON ---------- */

.email-wrap {
  display: inline-flex;
  align-items: stretch;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}

.copy-btn {
  position: relative;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.copy-btn svg {
  width: 0.8em;
  height: 0.8em;
  margin: 0.06em 0.04em 0.02em;   /* line up with the text height of the address */
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linejoin: round;
}

/* "copied!" label that pops up above the button */
.copy-label {
  position: absolute;
  bottom: calc(100% + 0.4rem);
  left: 50%;
  transform: translate(-50%, 0.3rem);
  font-family: var(--body);
  font-size: 0.8rem;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--text);
  background: var(--bg-deep);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.copy-btn.is-copied .copy-label { opacity: 1; transform: translate(-50%, 0); }

/* ---------- ABOUT PAGE (photo left, text right, like the old site) ---------- */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.about-photo {
  position: sticky;          /* photo stays put while the text scrolls */
  top: 0;
  height: 100vh;
  background: #1f1f1f center / cover no-repeat;
}
.about-text {
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1.5rem, 6vw, 6rem);
  max-width: 44rem;
  font-family: Georgia, "Times New Roman", serif;   /* serif body text, as on the old About page */
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text);
}
.about-text {
  /* centre the text block vertically next to the photo */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-text .big-title { margin-bottom: 2rem; }
.about-text p {
  margin: 0 0 1.1rem;
  text-align: justify;
  hyphens: auto;
}

@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { position: relative; height: 70vh; }
  .about-text { padding-top: 2.5rem; min-height: 0; }
}

/* Page intro with only a title (no lead text): less space before the content */
.section.intro--bare { padding-bottom: 0; }

/* Overview pages (film / photography / audio): buttons under each other */
.tags--stack {
  flex-direction: column;
  align-items: center;
  gap: clamp(0.5rem, 1.4vw, 0.9rem);
}

/* ---------- OVERVIEW PAGES: "sentoplene/film" on one line ----------
   White name, grey category, read like a web address. Breaks after
   "sentoplene" on small screens. Buttons side by side, a bit smaller. */

.lockup {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  margin: 0 0 clamp(1.2rem, 3vw, 2.2rem);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 7.5vw, 6.5rem);
  letter-spacing: -0.033em;
  line-height: 1;
  color: var(--text);
}
.lockup-cat { color: #8a8a8a; }

.tags--row .tag { font-size: clamp(1.1rem, 3vw, 2rem); }

/* Phones and narrow windows: name and category on two lines, bigger,
   and the buttons under each other */
@media (max-width: 760px) {
  .lockup {
    flex-direction: column;
    align-items: center;
    font-size: clamp(2.4rem, 12.5vw, 5.5rem);
    line-height: 0.95;
  }
  .tags--row {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
  }
  .tags--row .tag { font-size: clamp(1.4rem, 6.5vw, 2.4rem); }
}

/* Phones: make it clear which text belongs to which video.
   Caption sits tight under its video, a thin line and space separate the items. */
@media (max-width: 760px) {
  .grid:has(> .vcard) { gap: 0; }
  .vcard { padding: 2.2rem 0; border-top: 1px solid var(--line); }
  .vcard:first-child { padding-top: 0; border-top: 0; }
  .vcard:last-child { padding-bottom: 0; }
  .vcard figcaption { padding-top: 0.7rem; }
}

/* About page: email + copy button right under the text */
.about-contact { margin-top: 1.2rem; }
.about-contact .email-wrap { justify-content: flex-start; }
