/* bettysroom.asia — wisteria at dusk: ivory paper, plum ink, one lilac. Pages are generated by build.py. */
@view-transition { navigation: auto; }

:root {
  --paper: #f7f2ee;
  --paper-2: #efe7e6;
  --card: #fffdfb;
  --ink: #2c2130;
  --ink-2: #3b2c42;
  --mute: #6f6273;
  --line: rgba(44, 33, 48, .13);
  --lilac: #8e6a9c;
  --lilac-2: #b59cc0;
  --mist: #ebe2ef;
  --gold: #c9a463;
  --serif: "Cormorant Garamond", "Shippori Mincho", "Times New Roman", serif;
  --mincho: "Shippori Mincho", "Cormorant Garamond", serif;
  --sans: "Zen Kaku Gothic New", system-ui, sans-serif;
  --gut: clamp(16px, 4.5vw, 64px);
  --head: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head); -webkit-text-size-adjust: 100%; interpolate-size: allow-keywords; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/2 var(--sans);
  font-feature-settings: "palt";
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
address { font-style: normal; }
::selection { background: var(--mist); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }

.eyebrow {
  font: 500 12px/1.4 var(--sans);
  letter-spacing: .3em;
  color: var(--lilac);
}
.h1, .h2 { font: 500 clamp(28px, 2.4vw + 16px, 44px)/1.4 var(--mincho); letter-spacing: .08em; margin-top: 14px; }
.lead { font-size: clamp(16px, .6vw + 13px, 18px); line-height: 2.1; text-wrap: pretty; }
.arr { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; transition: transform .4s var(--ease); }

.btn {
  display: inline-flex; align-items: center; gap: .8em;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 500 14px/1 var(--sans); letter-spacing: .14em;
  transition: background .3s, transform .3s var(--ease);
}
.btn:hover { background: var(--lilac); }
.btn:hover .arr, .link:hover .arr { transform: translateX(4px); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.link {
  display: inline-flex; align-items: center; gap: .6em;
  padding-bottom: 4px;
  font: 500 14px/1 var(--sans); letter-spacing: .12em;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.link:hover { background-size: 30% 1px; }

/* skip link */
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 4px; font-size: 14px; }
.skip:focus { top: 12px; }

/* header */
.site-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--head); padding: 0 var(--gut);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site-logo img { height: 40px; width: auto; }
.nav-btn, .nav-close {
  display: none; position: relative; width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer; color: var(--ink);
}
.nav-btn span, .nav-close span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; }
.nav-btn span:first-child { top: 18px; }
.nav-btn span:last-child { top: 26px; }
.nav-close span { top: 21px; }
.nav-close span:first-child { transform: rotate(45deg); }
.nav-close span:last-child { transform: rotate(-45deg); }
#nav { all: unset; display: block; }
#nav ul { display: flex; gap: clamp(16px, 2vw, 34px); }
#nav a { font-size: 14px; letter-spacing: .1em; padding: 8px 0; position: relative; }
#nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--lilac); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
#nav a:hover::after, #nav a[aria-current]::after { transform: scaleX(1); }

@media (max-width: 960px) {
  .nav-btn { display: block; }
  #nav {
    position: fixed; inset: 0; width: auto; height: auto; margin: 0;
    padding: 20px var(--gut) 40px;
    background: var(--ink); color: var(--paper);
    border: 0;
  }
  #nav:not(:popover-open) { display: none; }
  #nav:popover-open { display: flex; flex-direction: column; animation: fade .35s var(--ease); }
  #nav .nav-close { display: block; align-self: flex-end; color: var(--paper); }
  #nav ul { flex-direction: column; gap: 0; margin-top: 24px; }
  #nav li { border-bottom: 1px solid rgba(247, 242, 238, .14); }
  #nav a { display: block; padding: 20px 0; font: 500 21px/1.4 var(--mincho); letter-spacing: .1em; }
  #nav a::after { display: none; }
}
@keyframes fade { from { opacity: 0; } }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(40px, 7vw, 110px) var(--gut) clamp(64px, 8vw, 130px);
  max-width: 1360px; margin: 0 auto;
}
.hero-title {
  font: italic 400 clamp(54px, 8vw + 10px, 132px)/.95 var(--serif);
  letter-spacing: -.01em;
  color: var(--ink);
}
.hero-tag {
  margin-top: 22px;
  font: italic 400 clamp(22px, 1.4vw + 14px, 32px)/1.3 var(--serif);
  color: var(--lilac);
}
.hero-text .lead { margin-top: 30px; max-width: 26em; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 44px; }
.hero-photo { position: relative; justify-self: end; width: min(100%, 470px); }
.arch { border-radius: 999px 999px 4px 4px; overflow: hidden; }
.arch img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-photo .arch img { object-position: 50% 20%; }
.sprig {
  position: absolute; left: -16%; bottom: -8%;
  width: 40%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 6px solid var(--paper);
  box-shadow: 0 20px 40px -24px rgba(44, 33, 48, .5);
}
.sprig img { width: 100%; height: 100%; object-fit: cover; }

/* story */
.story {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 7vw, 120px);
  padding: clamp(72px, 9vw, 150px) var(--gut);
  background: var(--card);
  border-block: 1px solid var(--line);
}
.story-side { align-self: start; position: sticky; top: calc(var(--head) + 40px); max-width: 420px; justify-self: end; width: 100%; }
.story-main { max-width: 640px; }
.prose p { margin-top: 1.4em; text-wrap: pretty; }
.prose p:first-child { margin-top: 32px; }
.more { margin-top: 0; }
.more::details-content { block-size: 0; overflow: hidden; transition: block-size .6s var(--ease), content-visibility .6s allow-discrete; }
.more[open]::details-content { block-size: auto; }
.more summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 26px; padding: 6px 0;
  font-size: 14px; letter-spacing: .14em; color: var(--lilac);
}
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.more .more-close, .more[open] .more-open { display: none; }
.more[open] .more-close { display: inline; }
.story .btn--line { margin-top: 48px; }

/* sessions — dusk */
.sessions { position: relative; isolation: isolate; color: var(--paper); padding: clamp(80px, 10vw, 160px) var(--gut); overflow: hidden; }
.sessions-bg { position: absolute; inset: 0; z-index: -2; }
.sessions-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; }
.sessions::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30, 20, 36, .72), rgba(30, 20, 36, .9)); }
.sessions-in { max-width: 1240px; margin: 0 auto; }
.sec-head { text-align: center; }
.sessions .eyebrow { color: var(--lilac-2); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(40px, 5vw, 72px); }
.card {
  display: flex; flex-direction: column;
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid rgba(247, 242, 238, .2);
  border-radius: 6px;
  background: rgba(247, 242, 238, .06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.card-no { font: italic 400 22px/1 var(--serif); color: var(--gold); }
.card h3 { margin-top: 22px; font: 500 21px/1.5 var(--mincho); letter-spacing: .08em; }
.price { margin-top: 10px; padding-bottom: 22px; border-bottom: 1px solid rgba(247, 242, 238, .2); font-size: 14px; letter-spacing: .08em; color: rgba(247, 242, 238, .8); }
.yen { font: 400 40px/1 var(--serif); letter-spacing: .02em; color: var(--paper); margin-right: 2px; }
.card-text { margin-top: 22px; font-size: 15px; line-height: 2; color: rgba(247, 242, 238, .88); }
.card-note { margin-top: 16px; font-size: 13px; line-height: 1.8; color: var(--lilac-2); }

/* reserve */
.reserve { padding: clamp(80px, 10vw, 150px) var(--gut); background: linear-gradient(180deg, var(--paper), var(--paper-2)); }
.notes { max-width: 680px; margin: 32px auto 0; font-size: 14px; line-height: 1.9; color: var(--mute); }
.notes li + li { margin-top: 8px; }
.br-msg { max-width: 680px; margin: 24px auto 0; padding: 14px 18px; border-radius: 6px; display: none; }
.br-msg.is-ok { display: block; background: #eef4ec; color: #2f5130; }
.br-msg.is-err { display: block; background: #f8ebee; color: #8a2338; }
.br-form {
  position: relative;
  max-width: 680px; margin: 32px auto 0;
  padding: clamp(28px, 4vw, 52px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 60px -40px rgba(44, 33, 48, .35);
  font-size: 15px; line-height: 1.7;
}
.br-f { margin: 0 0 24px; }
.br-l { display: block; margin-bottom: 8px; font-weight: 500; letter-spacing: .06em; }
.br-req { color: var(--lilac); margin-left: 4px; }
.br-form input[type=text], .br-form input[type=email], .br-form input[type=tel], .br-form input[type=date], .br-form select, .br-form textarea {
  width: 100%; min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #d9cfdc; border-radius: 6px;
  background: #fff; color: var(--ink);
  font: inherit; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.br-form input:focus, .br-form select:focus, .br-form textarea:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px var(--mist); }
.br-form textarea { min-height: 130px; resize: vertical; }
.br-row { display: flex; gap: 10px; flex-wrap: wrap; }
.br-row > * { flex: 1 1 0; min-width: 0; }
.br-row .br-date { flex: 2 1 0; }
.br-opt {
  display: flex; align-items: center; gap: 12px;
  margin: 8px 0; padding: 12px 16px;
  border: 1px solid #e3dae5; border-radius: 6px;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.br-opt:has(input:checked) { border-color: var(--lilac); background: #faf6fb; }
.br-opt input { accent-color: var(--lilac); width: 18px; height: 18px; margin: 0; flex: none; }
.br-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-top: 8px; }
.br-form button {
  display: flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 30px; padding: 18px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 500 16px/1 var(--sans); letter-spacing: .3em;
  cursor: pointer; transition: background .3s;
}
.br-form button:hover { background: var(--lilac); }
.br-form button[disabled] { opacity: .5; cursor: wait; }

/* access */
.access {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(80px, 9vw, 140px) var(--gut);
  max-width: 1360px; margin: 0 auto;
}
.access address { margin-top: 30px; }
.access address p + p { margin-top: 4px; }
.access .way { margin-top: 22px; font-size: 14px; color: var(--mute); text-wrap: pretty; }
.map { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.6) sepia(.15); }

/* footer */
.site-foot { background: var(--ink); color: var(--paper); text-align: center; padding: clamp(64px, 8vw, 110px) var(--gut) 32px; }
.foot-word { font: italic 400 clamp(40px, 5vw, 72px)/1 var(--serif); }
.foot-tag { margin-top: 14px; font: italic 400 20px/1.4 var(--serif); color: var(--lilac-2); }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 44px; font-size: 14px; letter-spacing: .1em; }
.foot-nav a { opacity: .8; }
.foot-nav a:hover { opacity: 1; }
.copy { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(247, 242, 238, .14); font-size: 12px; letter-spacing: .1em; opacity: .6; }

/* letters list */
.page-head { text-align: center; padding: clamp(56px, 8vw, 120px) var(--gut) clamp(32px, 4vw, 56px); }
.page-head .h1 { font: italic 400 clamp(44px, 5vw + 16px, 88px)/1.1 var(--serif); letter-spacing: 0; }
.page-head .hero-links { justify-content: center; }
.letters-wrap { padding: 0 var(--gut) clamp(80px, 10vw, 140px); }
.letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(36px, 4vw, 56px) clamp(20px, 3vw, 40px); max-width: 1240px; margin: 0 auto; }
.letter a { display: flex; flex-direction: column; height: 100%; }
.letter-img { display: block; overflow: hidden; border-radius: 6px; background: var(--paper-2); }
.letter-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease); }
.letter a:hover .letter-img img { transform: scale(1.04); }
.letter time { display: block; margin-top: 20px; font-size: 13px; letter-spacing: .1em; color: var(--lilac); }
.letter h2 { margin-top: 6px; font: 500 20px/1.6 var(--mincho); letter-spacing: .06em; }
.letter p { margin-top: 10px; font-size: 14px; line-height: 1.9; color: var(--mute); }
.letter .link { margin-top: auto; padding-top: 18px; align-self: flex-start; background-position: left calc(100% - 0px); }

/* a letter */
.post { max-width: 720px; margin: 0 auto; padding: clamp(48px, 7vw, 100px) var(--gut) clamp(80px, 10vw, 140px); }
.post-head { text-align: center; }
.post-head .eyebrow a:hover { color: var(--ink); }
.post-head .h1 { font-size: clamp(26px, 2vw + 16px, 38px); }
.post-head time { display: block; margin-top: 12px; font-size: 13px; letter-spacing: .12em; color: var(--mute); }
.post-img { margin-top: 44px; }
.post-img img { border-radius: 6px; margin: 0 auto; }
.post-body { margin-top: 48px; font-size: 16.5px; line-height: 2.2; }
.post-body p { margin-top: 1.2em; }
.post-body p:first-child { margin-top: 0; }
.post-body h2 { margin: 2.6em 0 1em; font: 500 22px/1.6 var(--mincho); letter-spacing: .06em; text-align: center; }
.post-body h2:first-child { margin-top: 0; }
.post-body img { margin: 32px auto; border-radius: 6px; max-height: 80vh; width: auto; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line); }
.pn { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 6px; font: 500 16px/1.6 var(--mincho); transition: border-color .3s, background .3s; }
.pn:hover { border-color: var(--lilac); background: var(--card); }
.pn--new { grid-column: 2; text-align: right; }
.post-cta { text-align: center; margin-top: 56px; }

/* reveal on scroll */
@supports (animation-timeline: view()) {
  .reveal, .card, .letter, .access-text {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .access { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --head: 64px; }
  .site-logo img { height: 34px; }
  .hero { grid-template-columns: 1fr; padding-top: 28px; gap: 40px; }
  .hero-photo { justify-self: center; width: min(78%, 360px); order: -1; margin-left: 10%; }
  .hero-text { text-align: left; }
  .hero-links { margin-top: 32px; }
  .story { grid-template-columns: 1fr; }
  .story-side { position: static; max-width: 200px; justify-self: start; }
  .map iframe { height: 300px; }
  .post-nav { grid-template-columns: 1fr; }
  .pn--new { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
