@font-face {
  font-family: "Philosophy Theater";
  src: url("/assets/home-night/theater-serif.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Philosophy Mincho";
  src: url("philosophy-mincho.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

.philosophy-type {
  --ink: #11100f;
  --ivory: #f1e6d3;
  --prose: #d2c7b6;
  --gold: #d5b15d;
  --turquoise: #32bfb4;
  --pink: #ed4999;
  --rule: #6d5a3a;
  --theme: var(--gold);
  --theater: "Philosophy Theater", Georgia, serif;
  --mincho: "Philosophy Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
  background: var(--ink);
  color: var(--prose);
}

.philosophy-type--encounter { --theme: var(--turquoise); }
.philosophy-type--audience { --theme: var(--pink); }

.philosophy-type main > section { border-color: var(--rule); }
.philosophy-type--expression main > .top { border-top: 1px solid var(--rule); }

.philosophy-type :is(.essay, .body, .copy) {
  font-size: clamp(.97rem, .9rem + .3vw, 1.06rem);
  line-height: 2;
}

.philosophy-type :is(.essay, .body, .copy) p {
  line-break: strict;
  text-wrap: pretty;
}

.philosophy-type .philosophy-folio,
.philosophy-type--expression .top .philosophy-folio {
  display: flex;
  align-items: baseline;
  gap: .8em;
  max-width: 32rem;
  color: var(--gold);
  font: 700 clamp(.69rem, 1.4vw, .83rem)/1.45 var(--theater);
  letter-spacing: .125em;
}

.philosophy-folio b {
  order: -1;
  color: var(--theme);
  font-size: clamp(4rem, 16vw, 7.3rem);
  line-height: .9;
  letter-spacing: -.06em;
}

.philosophy-folio::after,
.philosophy-index::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.philosophy-type :is(.mast, .top, .audience-hero) h1 {
  margin: clamp(17px, 3vw, 34px) 0 clamp(11px, 2vw, 22px);
  color: var(--ivory);
  font: 700 clamp(1.95rem, 6.25vw, 4.9rem)/1.25 var(--mincho);
  line-break: strict;
  text-wrap: pretty;
}

.philosophy-type :is(.mast, .top, .audience-hero) h1 :is(.b, .warm) {
  display: block;
  color: var(--theme);
  font-size: 1.16em;
}

.philosophy-type :is(.top, .audience-hero) h1 br { display: none; }

.philosophy-type .mast h1 .a,
.philosophy-type .philosophy-contrast span:first-child { color: var(--ivory); }

.philosophy-type :is(.mast-subtitle, .top > strong, .hero-subtitle) {
  color: var(--prose);
  font-size: clamp(.84rem, 1.6vw, 1.04rem);
  font-weight: 600;
  letter-spacing: .045em;
}

.philosophy-type .mast-subtitle::after { background: var(--theme); }

.philosophy-type .philosophy-index {
  display: flex;
  align-items: baseline;
  gap: .75em;
  max-width: 31rem;
  color: var(--theme);
  font: 700 clamp(.68rem, 1.5vw, .8rem)/1.35 var(--theater);
  letter-spacing: .14em;
}

.philosophy-index b {
  font-size: clamp(2.5rem, 9vw, 4.15rem);
  letter-spacing: -.06em;
  line-height: .92;
}

.philosophy-type :is(.philosophy-subhead, .encounter-ending h2, .quiet > h2) {
  color: var(--ivory);
  font: 700 clamp(1.5rem, 4.3vw, 3.05rem)/1.43 var(--mincho);
  line-break: strict;
  text-wrap: pretty;
}

.philosophy-type .philosophy-subhead strong,
.philosophy-type .philosophy-em { color: var(--theme); }

.philosophy-type .philosophy-quote,
.philosophy-type .key-line,
.philosophy-type .encounter-ending .accent {
  color: var(--theme);
  font: 700 clamp(1.39rem, 4vw, 1.9rem)/1.63 var(--mincho);
  margin-block: clamp(22px, 4vw, 45px);
}

.philosophy-type .philosophy-contrast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
  margin: clamp(17px, 3vw, 35px) 0 clamp(20px, 3.5vw, 36px);
  color: var(--theme);
  font: 700 clamp(1.47rem, 4.05vw, 3rem)/1.43 var(--mincho);
  line-break: strict;
}

.philosophy-contrast span:first-child { text-align: right; }
.philosophy-contrast span:last-child { letter-spacing: .035em; }
.philosophy-contrast span { text-wrap: balance; }

.philosophy-cross {
  display: grid;
  place-items: center;
  width: 1.58em;
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--gold);
  font: 700 .76em/1 var(--theater);
}

.philosophy-type .contrast-gallery .photo-label {
  color: var(--ivory);
  font-size: clamp(.82rem, 1.7vw, 1rem);
  font-weight: 600;
}
.philosophy-type .contrast-gallery figure + figure .photo-label { color: var(--theme); }

.philosophy-type--expression .top > strong { display: inline-block; }

.philosophy-type--expression .expression-section .philosophy-subhead {
  max-width: 28ch;
  margin-block: clamp(14px, 2.2vw, 29px) clamp(26px, 5vw, 56px);
}

.philosophy-type--expression .philosophy-subhead strong { display: block; }

.philosophy-type--expression .expression-section .body :is(.warm, .cool, .sign) { color: var(--gold); }

.philosophy-type--expression .body :is(.key, .sign),
.philosophy-type--expression .expression-text .body p:last-child,
.philosophy-type--expression .last p:has(.sign),
.philosophy-type--expression .body .verse {
  color: var(--gold);
  font: 700 clamp(1.39rem, 3.8vw, 1.96rem)/1.61 var(--mincho);
}

.philosophy-type--expression .body :is(.key, .verse),
.philosophy-type--expression .last p:has(.sign) { margin-block: clamp(22px, 4vw, 44px); }
.philosophy-type--expression .expression-text .body .key { margin-block: 0; }

.philosophy-type--audience .audience-hero h1 .warm,
.philosophy-type--audience .philosophy-subhead--5 strong {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans CJK JP", sans-serif;
  font-weight: 900;
  letter-spacing: -.035em;
}

.philosophy-type--audience .audience-hero h1 .warm {
  position: relative;
  width: fit-content;
}

.philosophy-type--audience .audience-hero h1 .warm::after {
  content: "";
  display: block;
  width: 63%;
  height: 1px;
  margin: .08em 0 .16em .05em;
  transform: rotate(-3deg);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.philosophy-type--audience .philosophy-subhead :is(span, strong) { display: block; }

.philosophy-type--audience .philosophy-subhead:not(.philosophy-subhead--3) strong {
  font-size: 1.13em;
  line-height: 1.43;
}

.philosophy-type--audience .quiet > .philosophy-subhead--3 {
  font-size: clamp(1.42rem, 3.7vw, 2.4rem);
}

.philosophy-type--audience .quiet > .philosophy-subhead--3 strong {
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
  color: var(--ivory);
}

.philosophy-type--audience .philosophy-subhead--5 strong {
  font-size: 1.2em;
  max-width: 14em;
}

.philosophy-type--audience .philosophy-subhead--5::after {
  content: "";
  width: .45em;
  height: .45em;
  display: block;
  margin-top: .45em;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.philosophy-type--audience .copy :is(.warm, .signature) { color: var(--theme); }
.philosophy-type--audience .copy .cool { color: var(--ivory); }
.philosophy-type--audience .copy .signature { color: var(--gold); }
.philosophy-type--audience .copy .pull {
  font: 700 clamp(1.38rem, 3.8vw, 1.95rem)/1.58 var(--mincho);
}

.philosophy-type .night-explore .explore-card {
  --accent: var(--theme);
  border-color: var(--rule);
  border-top-color: var(--theme);
  color: var(--ivory);
}

.philosophy-type .night-explore .explore-card small { color: var(--theme); }
.philosophy-type .night-explore .explore-card > span { color: var(--theme); }
.philosophy-type .night-explore .explore-back a { color: var(--ivory); }
.philosophy-type .night-explore a:is(:hover, :focus-visible) {
  outline: 1px solid var(--theme);
  outline-offset: 4px;
}

@media (max-width: 370px) {
  .philosophy-type--expression .top h1 .warm {
    font-size: .96em;
    letter-spacing: -.018em;
  }
  .philosophy-type .philosophy-contrast { font-size: 1.38rem; }
}
