/* ==========================================================================
   mimiyoshii.com — shared sub-page stylesheet
   Tokens, navigation, type, rows, heroes and footer shared by the inner
   pages. Loaded before each page's inline styles (page-specific rules) and
   before assets/enhance.css (motion). Keep in step with DESIGN.md.
   ========================================================================== */

:root {
  --bg: #FDFAF8;
  --bg2: #F7F0F2;
  --text: #1C1C1C;
  --muted: #5F4E55;
  --rose: #C64B6C;
  --rose-border: #E8D5D9;
  --rose-wash: rgba(198, 75, 108, 0.08);
  --rose-strong: #C64B6C;
  --section-dark: #151114;
  --nav-bg: rgba(253, 250, 248, 0.94);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --section-y: clamp(4rem, 9vw, 7rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1518;
    --bg2: #211A1E;
    --text: #F0E6EA;
    --muted: #C4A0AE;
    --rose: #E8829F;
    --rose-border: #4A2535;
    --rose-wash: rgba(232, 130, 159, 0.1);
    --section-dark: #0D0A0C;
    --nav-bg: rgba(26, 21, 24, 0.96);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.7; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }

/* ---------- Type ---------- */
.label { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rose); font-weight: 500; }
.h-xl { font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 7.5vw, 6.5rem); line-height: 0.95; letter-spacing: -0.02em; }
.h-lg { font-family: var(--serif); font-weight: 500; font-size: clamp(2.5rem, 5.5vw, 4.5rem); line-height: 1; letter-spacing: -0.015em; }
.h-md { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.08; letter-spacing: -0.01em; }
.h-xl em, .h-lg em, .h-md em { font-style: italic; font-weight: 400; color: var(--rose); }
.lead { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 400; line-height: 1.4; color: var(--text); }
.prose { color: var(--muted); font-size: 1rem; line-height: 1.85; max-width: 60ch; }
.prose p + p { margin-top: 1.1rem; }
.arrow-link { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 500; transition: color 0.2s; }
.arrow-link::after { content: '→'; font-size: 1rem; transition: transform 0.25s var(--ease); }
.arrow-link:hover { color: var(--rose); }
.arrow-link:hover::after { transform: translateX(0.35rem); }
.text-link { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--rose); transition: color 0.2s; }
.text-link:hover { color: var(--rose); }
.big-email { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 500; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--rose); padding-bottom: 2px; display: inline-block; transition: color 0.2s; }
.big-email:hover { color: var(--rose); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.95rem 1.9rem; background: var(--rose-strong); color: #fff; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; text-decoration: none; border: 1px solid var(--rose-strong); cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--text); }
.btn--outline:hover { background: var(--text); color: var(--bg); }
.btn--light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn--light:hover { background: #fff; border-color: #fff; color: #151114; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---------- Layout ---------- */
.wrap { max-width: 1240px; margin: 0 auto; }
.section { padding: var(--section-y) var(--gutter); background: var(--bg); }
.section--alt { background: var(--bg2); }
.section--dark { background: var(--section-dark); color: #fff; }
.section--dark .label { color: #E8829F; }
.section--dark .h-lg em, .section--dark .h-md em, .section--dark .h-xl em { color: #E8829F; }
.section--dark .prose { color: rgba(255, 255, 255, 0.65); }
.section--dark .arrow-link { color: #fff; }
.section--dark .arrow-link:hover { color: #E8829F; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); flex-wrap: wrap; }
.section-head .label { display: block; margin-bottom: 1rem; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split--wide { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.split > .sticky { position: sticky; top: 6rem; }
.split .label { display: block; margin-bottom: 1.25rem; }
.split .h-md, .split .h-lg { margin-bottom: 1.5rem; }
.divider { border: 0; border-top: 1px solid var(--rose-border); margin: 0 var(--gutter); }

/* ---------- Navigation ---------- */
#main-nav, body > nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 1.1rem var(--gutter); background: var(--nav-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rose-border); }
.nav-logo { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--text); text-decoration: none; font-style: italic; letter-spacing: -0.01em; transition: color 0.3s; }
.nav-links { display: flex; gap: 2.25rem; list-style: none; }
.nav-links a { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.2s; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--rose); }
.nav-lang { font-size: 0.75rem; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--rose-border); padding-bottom: 1px; transition: color 0.2s; }
.nav-lang:hover { color: var(--rose); }
.nav-actions { display: flex; align-items: center; gap: 1.5rem; }

/* Transparent nav over a photo hero until the page scrolls */
/* #main-nav is repeated so this beats the ID rule above; without it the bar
   stays light while the text turns white and the logo disappears. */
body.has-photo-hero > #main-nav:not(.scrolled),
body.has-photo-hero > nav:not(.scrolled) { background: transparent; backdrop-filter: none; border-bottom-color: transparent; }
body.has-photo-hero > nav:not(.scrolled) .nav-logo { color: #fff; }
body.has-photo-hero > nav:not(.scrolled) .nav-links a { color: rgba(255, 255, 255, 0.85); }
body.has-photo-hero > nav:not(.scrolled) .nav-links a:hover,
body.has-photo-hero > nav:not(.scrolled) .nav-links a.active { color: #E8829F; }
body.has-photo-hero > nav:not(.scrolled) .nav-lang { color: rgba(255, 255, 255, 0.8); border-bottom-color: rgba(255, 255, 255, 0.35); }
body.has-photo-hero > nav:not(.scrolled) .hamburger span { background: rgba(255, 255, 255, 0.85); }
body.has-photo-hero > nav .hamburger.open span { background: var(--text); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; z-index: 101; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--muted); transition: all 0.3s; }
.hamburger.open span { background: var(--text); }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; inset: 0; background: var(--bg); z-index: 99; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.5rem; padding: var(--gutter); }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; color: var(--text); text-decoration: none; line-height: 1; transition: color 0.2s; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--rose); }

/* ---------- Heroes ---------- */
.hero-photo { position: relative; min-height: min(84svh, 780px); display: flex; align-items: flex-end; padding: 9rem var(--gutter) 3.5rem; background: var(--section-dark); color: #fff; overflow: hidden; }
.hero-photo__img { position: absolute; inset: 0; }
.hero-photo__img img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 6, 8, 0.92) 0%, rgba(10, 6, 8, 0.45) 45%, rgba(10, 6, 8, 0.3) 100%), linear-gradient(to right, rgba(10, 6, 8, 0.5) 0%, rgba(10, 6, 8, 0) 60%); }
.hero-photo__inner { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 2rem 4rem; align-items: end; }
.hero-photo .label { display: block; margin-bottom: 1.25rem; color: #E8829F; }
.hero-photo h1 { color: #fff; max-width: 14ch; }
.hero-photo h1 em { color: #E8829F; }
.hero-photo__side { display: flex; flex-direction: column; gap: 1.5rem; padding-bottom: 0.4rem; border-left: 1px solid rgba(255, 255, 255, 0.35); padding-left: 1.5rem; }
.hero-photo__side p { color: rgba(255, 255, 255, 0.78); font-size: 0.98rem; line-height: 1.75; max-width: 36ch; }
.hero-photo__credit { position: absolute; bottom: 1rem; right: var(--gutter); z-index: 2; font-size: 0.65rem; color: rgba(255, 255, 255, 0.45); letter-spacing: 0.05em; }

.hero-dark { position: relative; padding: 9rem var(--gutter) clamp(3rem, 6vw, 5rem); background: var(--section-dark); color: #fff; overflow: hidden; }
.hero-dark__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.hero-dark .label { display: block; margin-bottom: 1.25rem; color: #E8829F; }
.hero-dark h1 { color: #fff; }
.hero-dark h1 em { color: #E8829F; }
.hero-dark__sub { color: rgba(255, 255, 255, 0.7); font-size: 1rem; line-height: 1.8; max-width: 40ch; margin-top: 1.75rem; }
.hero-dark__figure { position: relative; margin: 0; justify-self: end; width: min(100%, 26rem); }
.hero-dark__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-dark__figure figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem 0.8rem; font-size: 0.66rem; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.75); background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0)); }
.watermark { position: absolute; font-family: var(--serif); font-weight: 500; line-height: 1; color: rgba(255, 255, 255, 0.035); pointer-events: none; user-select: none; }

/* ---------- Rows ---------- */
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--rose-border); }
.row { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 5fr) minmax(0, 6fr); gap: 2rem; align-items: baseline; padding: 1.75rem 0; border-bottom: 1px solid var(--rose-border); color: inherit; text-decoration: none; }
.row::before { content: ''; position: absolute; left: -1rem; right: -1rem; top: 0; bottom: 0; background: var(--rose-wash); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.row:hover::before { transform: scaleX(1); }
.row > * { position: relative; }
.row__num { font-family: var(--serif); font-style: italic; color: var(--rose); font-size: 1.1rem; }
.row__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -0.01em; transition: transform 0.3s var(--ease); }
a.row:hover .row__title, .row--link:hover .row__title { transform: translateX(0.4rem); }
.row__desc { color: var(--muted); font-size: 0.95rem; line-height: 1.75; max-width: 52ch; }
.row__desc a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--rose); }
.row__desc a:hover { color: var(--rose); }
.row__meta { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose); font-weight: 500; }
.rows--tight .row { grid-template-columns: 3rem 1fr; padding: 1.1rem 0; }
.rows--tight .row__title { font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 400; }
.section--dark .rows { border-top-color: rgba(255, 255, 255, 0.14); }
.section--dark .row { border-bottom-color: rgba(255, 255, 255, 0.14); }
.section--dark .row::before { background: rgba(255, 255, 255, 0.05); }
.section--dark .row__num, .section--dark .row__meta { color: #E8829F; }
.section--dark .row__desc { color: rgba(255, 255, 255, 0.65); }

/* ---------- Index grid (disciplines, qualifications) ---------- */
.index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; }
.index-item { border-top: 1px solid var(--rose-border); padding: 1.5rem 0 2rem; }
.index-item__num { font-family: var(--serif); font-style: italic; color: var(--rose); font-size: 1rem; display: block; margin-bottom: 0.9rem; }
.index-item__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.1; margin-bottom: 0.6rem; }
.index-item__text { color: var(--muted); font-size: 0.92rem; line-height: 1.75; }

/* ---------- Quotes ---------- */
.quote-list { display: flex; flex-direction: column; border-top: 1px solid var(--rose-border); }
.quote-item { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem 4rem; padding: clamp(2rem, 4vw, 3rem) 0; border-bottom: 1px solid var(--rose-border); }
.quote-item__who { display: flex; flex-direction: column; gap: 0.35rem; padding-top: 0.6rem; }
.quote-item__production { font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 1.9vw, 1.7rem); line-height: 1.15; }
.quote-item__source { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rose); font-weight: 500; }
.quote-item__source a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rose-border); transition: border-color 0.2s; }
.quote-item__source a:hover { border-bottom-color: var(--rose); }
.quote-item__author { font-size: 0.8rem; color: var(--muted); }
.quote-item__text { position: relative; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 2.15rem); line-height: 1.3; letter-spacing: -0.005em; max-width: 30ch; }
.quote-item__text::before { content: '\201C'; position: absolute; left: -0.6em; top: -0.12em; font-size: 2em; line-height: 1; color: var(--rose); font-style: normal; opacity: 0.55; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rose); font-weight: 500; padding: 0 0.75rem 0.9rem 0; text-align: left; border-bottom: 1px solid var(--rose-border); }
.table td { padding: 1rem 0.75rem 1rem 0; border-bottom: 1px solid var(--rose-border); vertical-align: baseline; }
.table td:first-child { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; white-space: nowrap; }
.table td:nth-child(2) { font-family: var(--serif); font-size: 1.15rem; white-space: nowrap; }
.table td:nth-child(3) { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; }
.table td a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rose); }
.table td a:hover { color: var(--rose); }

/* ---------- Video facade ----------
   A YouTube embed is shown as its poster frame with a play mark; the player
   itself (and its scripts) only load when someone presses play (enhance.js).
   Without JS the facade is a plain link to the video on YouTube. */
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; color: #fff; }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ease), opacity 0.3s; }
.yt:hover img { transform: scale(1.025); }
.yt__play { position: absolute; left: 50%; top: 50%; width: 4.25rem; height: 4.25rem; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.85); background: rgba(10, 6, 8, 0.5); transition: background 0.2s, border-color 0.2s; }
.yt__play::after { content: ''; border-style: solid; border-width: 0.6rem 0 0.6rem 1rem; border-color: transparent transparent transparent #fff; margin-left: 0.2rem; }
.yt:hover .yt__play, .yt:focus-visible .yt__play { background: var(--rose-strong); border-color: var(--rose-strong); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Media cards ---------- */
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2.5rem; }
.media-card { display: flex; flex-direction: column; gap: 1rem; }
.media-card iframe, .media-card .yt { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; display: block; }
.media-card__meta { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; align-items: baseline; border-top: 1px solid var(--rose-border); padding-top: 1rem; }
.media-card__year { font-family: var(--serif); font-style: italic; color: var(--rose); font-size: 1.05rem; }
.media-card__title { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.15; }
.media-card__title a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rose-border); transition: border-color 0.2s, color 0.2s; }
.media-card__title a:hover { color: var(--rose); border-bottom-color: var(--rose); }
.media-card__detail { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }
.media-card--wide { grid-column: 1 / -1; }
.media-card--wide .media-card__title { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); padding: clamp(3rem, 7vw, 5rem) var(--gutter) 1.5rem; border-top: 1px solid var(--rose-border); }
.footer-mark { font-family: var(--serif); font-weight: 500; font-size: clamp(3.4rem, 12vw, 11rem); line-height: 0.85; letter-spacing: -0.035em; color: var(--text); margin-bottom: 2rem; }
.footer-mark em { font-style: italic; font-weight: 400; color: var(--rose); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; border-top: 1px solid var(--rose-border); padding-top: 1.25rem; font-size: 0.74rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.7rem; }
.footer-links a:hover { color: var(--rose); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .split--wide, .hero-dark__inner, .hero-photo__inner, .quote-item { grid-template-columns: 1fr; }
  .split > .sticky { position: static; }
  .index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-grid { grid-template-columns: 1fr; }
  .hero-dark__figure { justify-self: start; width: min(100%, 20rem); }
  .quote-item__text { max-width: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-photo { padding-top: 7rem; min-height: min(78svh, 640px); }
  .hero-photo__side { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.3); padding-top: 1.25rem; }
  .hero-dark { padding-top: 7rem; }
  .row { grid-template-columns: 2.25rem 1fr; gap: 0.5rem 1rem; }
  .row__desc { grid-column: 2; }
  .index-grid { grid-template-columns: 1fr; gap: 0; }
  .quote-item__text::before { left: -0.45em; }
}
