* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial,"Malgun Gothic",sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body,button {
  font-synthesis: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,summary:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

h1,h2,p,figure {
  margin: 0;
}

nav,.mast,.tail,.caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.frame {
  padding: 0 clamp(20px,4vw,76px);
}

.mast {
  min-height: 70px;
  border-bottom: 1px solid currentColor;
}

.mast .word {
  font-size: 24px;
  letter-spacing: -.065em;
  font-weight: 750;
}

.mast nav a,.meta,.caption,.tail,.button {
  font-size: 12px;
  line-height: 1.4;
}

.meta,.caption {
  letter-spacing: .08em;
}

.button {
  border: 1px solid currentColor;
  padding: 12px 18px;
  display: inline-block;
  border-radius: 30px;
}

.body-section {
  padding: 72px 0;
}

.body-section h2 {
  font-size: clamp(30px,4vw,64px);
  letter-spacing: -.06em;
  margin-bottom: 24px;
}

.body-section p {
  line-height: 1.75;
  word-break: keep-all;
}

.tail {
  border-top: 1px solid currentColor;
  padding: 24px 0;
}

.tail a {
  text-decoration: underline;
}

.photogrid,.notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.photogrid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.photogrid figcaption {
  margin-top: 9px;
  font-size: 14px;
}

.axis {
  --paper: #e8ece7;
  --ink: #171d1b;
}

.axis .mast .word::before {
  content: "◩";
  margin-right: 8px;
}

.axis h1 {
  font-size: clamp(66px,11vw,186px);
  line-height: .9;
  letter-spacing: -.085em;
  font-weight: 500;
}

.axis-title {
  padding: 35px 0 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
}

.axis-title p {
  max-width: 16em;
  line-height: 1.5;
  font-size: 13px;
}

.axis-cover {
  position: relative;
  height: clamp(330px,48vh,650px);
  overflow: hidden;
  background: #263029;
}

.axis-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  filter: saturate(.55);
}

.axis-cover figcaption {
  position: absolute;
  inset: auto auto 15px 15px;
  padding: 9px 12px;
  background: #cefa73;
  font: 12px monospace;
}

.axis .caption {
  padding: 14px 0;
  border-bottom: 1px solid;
}

.axis .intro {
  max-width: 34em;
  margin-bottom: 25px;
}

.herbier {
  --paper: #f6efe3;
  --ink: #571c2b;
}

.herbier .mast .word {
  font-family: Georgia,serif;
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
}

.herbier-hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  min-height: 75vh;
  align-items: stretch;
  border-bottom: 1px solid;
}

.herbier-copy {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  padding: 34px 7% 34px 0;
}

.herbier h1 {
  font: normal clamp(70px,9.4vw,155px)/.9 Georgia,serif;
  letter-spacing: -.087em;
  margin: 24px 0;
}

.herbier h1 i {
  display: block;
  margin-left: .25em;
  font-weight: 400;
}

.herbier-copy>p:not(.meta) {
  max-width: 25em;
  line-height: 1.65;
  font-size: 14px;
  word-break: keep-all;
}

.herbier .button {
  margin-top: 26px;
}

.bottle {
  position: relative;
  min-height: 280px;
  background: #d1ae82;
  isolation: isolate;
  overflow: hidden;
}

.bottle img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bottle figcaption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff;
  background: #4d2532;
  padding: 7px 12px;
  font: italic 16px Georgia,serif;
}

.herbier .caption {
  padding: 14px 0;
}

.herbier .notes {
  border-top: 1px solid;
  padding-top: 18px;
}

.herbier .notes b {
  font-family: Georgia,serif;
  font-size: 26px;
}

.phase {
  --paper: #ff6139;
  --ink: #161310;
}

.phase .mast .word {
  font-family: monospace;
  letter-spacing: -.12em;
}

.phase-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 72vh;
  overflow: hidden;
  border-bottom: 2px solid;
}

.phase h1 {
  position: relative;
  font-size: clamp(78px,12vw,190px);
  line-height: .8;
  letter-spacing: -.085em;
  text-transform: uppercase;
  margin: 22px 0;
}

.phase h1 em {
  margin-left: .4em;
  font-style: normal;
}

.phase .button {
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  border: none;
  font-weight: 700;
}

.phase-main {
  position: relative;
  z-index: 1;
  padding: 40px 0;
}

.phase .caption {
  padding: 14px 0;
  border-bottom: 1px solid;
}

.disc {
  position: absolute;
  inset: 5% -6% 3% auto;
  width: 55%;
  background: repeating-radial-gradient(ellipse at 50% 50%,transparent 0 6px,#151211 7px 9px,transparent 10px 13px);
  border-radius: 50%;
  transform: rotate(-27deg) skewY(-12deg);
  mask-image: radial-gradient(ellipse,#000 71%,transparent 72%);
}

.phase:has(#session-preview:target) { background: #191715; }
#session-preview:target, #session-preview:target #program { padding: 0; }
#session-preview:target :is(.mast, .phase-hero, .caption, #program > h2, .tail) { display: none; }

.phase .caption b {
  font-size: 22px;
  letter-spacing: -.06em;
}

@media (min-width: 651px) {
  .axis main > section:first-child {
    display: flex;
    flex-direction: column;
    min-height: calc(100svh - 70px);
  }
  .axis-cover {
    flex: 1;
    min-height: 330px;
  }
  .axis-cover img {
    position: absolute;
    inset: 0;
  }
  .herbier-hero, .phase-hero {
    min-height: calc(100svh - 114px);
  }
}

@media(max-width:650px) {
  .mast {
    min-height: 56px;
  }
  .mast nav a:not(:last-child) {
    display: none;
  }
  .axis-title {
    align-items: start;
    flex-direction: column;
  }
  .axis-title p {
    max-width: 100%;
  }
  .axis-cover {
    height: 48vh;
  }
  .herbier-hero {
    grid-template-columns: 1fr;
  }
  .herbier-copy {
    padding: 32px 0;
  }
  .herbier h1 {
    font-size: 72px;
    margin: 16px 0;
  }
  .herbier h1 i {
    display: inline;
    margin: 0;
  }
  .bottle {
    height: 38vh;
  }
  .phase-hero {
    min-height: 65vh;
  }
  .disc {
    width: 65%;
    inset: 24% -33% 0 auto;
  }
  .photogrid,.notes {
    grid-template-columns: 1fr;
  }
  .caption {
    gap: 8px;
    font-size: 10px;
  }
  .body-section {
    padding: 42px 0;
  }
  .tail {
    align-items: start;
  }
  .phase h1 {
    font-size: clamp(66px,19vw,110px);
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}
