/* Sloom Kyoto guest guide — follows the owner's phone prototype (Figma) and her design canvas:
   a black band with the logo, a sticky gooey tab bar, white pages of hand-drawn icon rows,
   gooey accordions and folder tabs, black buttons, a black footer.
   Type scale (owner's rule, no other sizes): 20 headings · 16 sub-headings and buttons · 14 body · 12 small print. */
:root {
  --ink: #111111;
  --ink-2: #3a3a3a;
  --muted: #8b8b8b;
  --quiet: #5f5f5f;
  --line: #e4e4e4;
  --pill: #e9e9e9;
  --soft: #f3f3f3;
  --black: #000000;
  --white: #ffffff;
  --font: "Inter", "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  color-scheme: light;
}
/* one typeface per language, used for every letter on the page (owner's rule: no mixing).
   Chinese: Microsoft YaHei (PingFang on Apple devices); Japanese: Noto Sans JP; Korean: the system Korean face. */
html:lang(zh) { --font: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", sans-serif; }
html:lang(ja) { --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif; }
html:lang(ko) { --font: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 66px; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--white); color: var(--ink); font: 400 14px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.filters { position: absolute; width: 0; height: 0; }

/* black band with the logo; language in the corner */
.band { background: var(--black); position: relative; padding: calc(34px + env(safe-area-inset-top, 0px)) 16px 26px; text-align: center; border-radius: 0 0 20px 20px; }
.band .logo { display: inline-block; width: 207px; }
.band .logo img { width: 100%; height: auto; }
.lang { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
.lang select { appearance: none; -webkit-appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 9px center;
  border: 1px solid rgba(255,255,255,.38); border-radius: 999px; color: #fff; font: 500 12px/1 var(--font); padding: 6px 26px 6px 11px; cursor: pointer; }
.lang select option { color: #111; }

/* sticky tabs, "gooey": one joined grey bar; the current tab lifts out of it in black,
   opening a gap on each side, and the rest close up behind it */
.tabs { position: sticky; top: 0; z-index: 10; margin-top: 12px; background: var(--white); display: flex; overflow-x: auto; padding: 12px 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { --r: 10px; --gap: 12px; flex: none; background: var(--pill); border-radius: 0; margin: 0; padding: 7px 12px; font-size: 14px; font-weight: 500; line-height: 1.3; text-decoration: none; white-space: nowrap;
  transition: margin .46s cubic-bezier(.34, 1.56, .64, 1), border-radius .36s ease, background-color .24s ease, color .24s ease; }
.tabs a:first-child, .tabs a[aria-current="true"] + a { border-top-left-radius: var(--r); border-bottom-left-radius: var(--r); }
.tabs a:last-child, .tabs a:has(+ a[aria-current="true"]) { border-top-right-radius: var(--r); border-bottom-right-radius: var(--r); }
.tabs a[aria-current="true"] { background: var(--black); color: var(--white); border-radius: var(--r); margin: 0 var(--gap); }
.tabs a[aria-current="true"]:first-child { margin-left: 0; }
.tabs a[aria-current="true"]:last-child { margin-right: 0; }

/* the page */
main { flex: 1; padding: 4px 18px 32px; }
html, body { overflow-x: clip; }
.wrap { max-width: 560px; margin: 0 auto; }
/* every page and section title: bold, on the left edge of the text column */
h1, h2 { letter-spacing: -.01em; line-height: 1.25; margin: 0; font-size: 20px; font-weight: 600; }
h1 { margin: 14px 0; }
h2 { margin: 34px 0 12px; }
section > h2:first-child { margin-top: 18px; }
h3 { font-size: 16px; font-weight: 600; line-height: 1.35; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--quiet); text-decoration: none; margin-top: 12px; }
.back::before { content: ""; width: 7px; height: 7px; border-left: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: rotate(45deg); }
.lead { color: var(--ink-2); }

/* icon rows */
.row { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row > img { width: 76px; height: 76px; object-fit: contain; }
.row > img.wifi-ic { width: 70px; height: auto; justify-self: center; }
.row h3 { margin-bottom: 8px; }
.row p { margin: 0; line-height: 1.75; color: var(--ink-2); }
.row .kv { display: flex; align-items: center; gap: 8px; line-height: 2; }
.chip { display: inline-block; background: var(--pill); border: 0; border-radius: 6px; padding: 1px 7px; font-size: 12px; line-height: 1.6; color: var(--ink-2); cursor: pointer; text-decoration: none; }

/* black full-width button */
.cta { display: flex; align-items: center; justify-content: center; min-height: 40px; margin: 14px 0; background: #111; color: var(--white); border-radius: 20px;
  font-size: 16px; font-weight: 500; text-decoration: none; }
.cta:active { opacity: .85; }

/* the location card */
.addr { text-align: center; font-size: 12px; color: var(--muted); margin: 8px 0 4px; }
h2.loc { margin-top: 18px; }
.mapframe.house-map { height: 240px; }
.mapframe { display: block; width: 100%; height: 300px; border: 0; border-radius: 10px; margin: 4px 0 0; background: var(--soft); }

/* shared by the gooey pieces: shapes drawn under an SVG goo filter so they melt together, text on top */
.goo { position: absolute; inset: 0; filter: url(#goo); pointer-events: none; }
.goo i { position: absolute; display: block; }

/* gooey accordions: the grey body grows out of the grey header into one card */
.accs { display: grid; gap: 10px; margin: 0 0 6px; }
.acc-item { position: relative; }
.g-head { left: 0; right: 0; top: 0; height: 36px; background: var(--pill); border-radius: 10px; }
.g-body { left: 0; right: 0; top: 36px; bottom: 0; background: var(--pill); border-radius: 10px; }
.acc-head, .acc-link { position: relative; width: 100%; height: 36px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 12px;
  background: none; border: 0; font-size: 14px; line-height: 1.4; text-align: left; text-decoration: none; cursor: pointer; }
.acc-link { background: var(--pill); border-radius: 10px; }
.acc-head::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .4s cubic-bezier(.22, 1, .36, 1), margin .4s; }
.acc-item.open .acc-head::after { transform: rotate(-135deg); margin-top: 4px; }
.acc-link::after { content: ""; flex: none; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); margin-right: 4px; }
.acc-panel { position: relative; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.22, 1, .36, 1); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; min-height: 0; }
.acc-inner { padding: 4px 10px 10px; opacity: 0; transition: opacity .3s ease; }
.acc-item.open .acc-inner { opacity: 1; }

/* gooey folder tabs: one blob slides under the chosen tab and melts into the panel below */
.ft { --bg: #efefef; position: relative; margin: 0 0 6px; }
.acc-inner .ft { --bg: var(--white); margin: 0; }
.goo-ft { filter: url(#goo-ft); }
.ft-blob { top: 0; height: 44px; width: calc(100% / var(--n)); left: calc(100% / var(--n) * var(--i)); background: var(--bg); transition: left .4s cubic-bezier(.22, 1, .36, 1); }
.ft-panel { top: 44px; left: 0; right: 0; bottom: 0; background: var(--bg); }
.ft-tabs { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); height: 44px; }
.ft-tabs button { display: flex; align-items: center; justify-content: center; gap: 6px; background: none; border: 0; padding: 0 4px; font-size: 14px; font-weight: 500; color: var(--quiet); cursor: pointer; transition: color .24s; }
.ft-tabs button[aria-selected="true"] { color: var(--ink); }
.ft-tabs svg { width: 16px; height: 16px; flex: none; }
.ft-body { position: relative; padding: 18px 16px 20px; }
.ft-pane { animation: ftIn .24s ease-out both; color: var(--ink-2); }
.ft-pane b { color: var(--ink); }
.ft-pane p { margin: 0 0 10px; }
.ft-pane .list { margin-top: 4px; }
.ft-pane .list a { border-bottom-color: #d9d9d9; }
@keyframes ftIn { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

/* appliances: big rounded cards stacked so each overlaps the one above (grey); tap one and it turns white and opens
   a preview of its model; tap it again and it closes. The black arrow goes straight to the appliance's page. */
.stack { margin: 18px 0 0; }
.sc { position: relative; background: var(--pill); border: 2px solid var(--white); border-radius: 28px; margin-top: -30px; padding: 18px 18px 46px; cursor: pointer;
  transition: background-color .3s ease, box-shadow .3s ease; }
.sc:first-child { margin-top: 0; }
.sc:last-child { padding-bottom: 20px; }
.sc.open { background: var(--white); box-shadow: 0 0 0 1px #d9d9d9, 0 10px 28px rgba(0, 0, 0, .08); }
.sc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; width: 100%; padding: 0; background: none; border: 0; text-align: left; cursor: pointer; }
.sc-title { font-size: 20px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.sc-no { font-size: 12px; color: var(--quiet); font-variant-numeric: tabular-nums; padding-top: 4px; }
.sc-meta { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.pill { border: 1px solid var(--ink); border-radius: 999px; padding: 2px 10px; font-size: 12px; line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sc-go { margin-left: auto; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #111; display: grid; place-items: center; }
.sc-go svg { width: 18px; height: 18px; }
.sc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.22, 1, .36, 1); }
.sc.open .sc-body { grid-template-rows: 1fr; }
.sc-body > div { overflow: hidden; min-height: 0; }
.sc-inner { padding-top: 16px; opacity: 0; transition: opacity .3s ease; cursor: auto; }
.sc.open .sc-inner { opacity: 1; }
.sc .model { margin: 0; max-height: 520px; }
.sc-pic { width: 100%; border-radius: 12px; background: var(--soft); }
.sc .cta { margin-bottom: 0; }

/* Kyoto page: a stack of full-width sections, each with the same generous vertical space so they read as separate blocks
   (order and colours from the old site: photo, white, charcoal #383934, warm grey #949189) */
.sec { margin: 0 calc(50% - 50vw); padding: 48px max(18px, calc(50vw - 280px)); }
h1 + .sec { margin-top: 10px; }
.sec:last-child { margin-bottom: -32px; }
.sec h2 { margin: 0 0 20px; }
.ev-btn { display: flex; align-items: center; justify-content: center; min-height: 34px; margin: 0 0 8px; padding: 4px 18px; border: 1px solid var(--white); border-radius: 999px; color: var(--white); line-height: 1.4; text-align: center; text-decoration: none; transition: background-color .2s, color .2s; }
.ev-btn:hover, .ev-btn:active { background: var(--white); color: var(--ink); }

/* events: the photo under a solid dark tint, narrow white outlined pill buttons, centred */
.events { position: relative; isolation: isolate; background: center / cover no-repeat; color: var(--white); text-align: center; }
.events::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(17, 17, 17, .7); }
.events h2 { margin-bottom: 4px; }
.ev-label { margin: 22px 0 10px; color: rgba(255, 255, 255, .85); }
.events .ev-btn { max-width: 260px; margin-left: auto; margin-right: auto; }

/* exhibitions: title and the two links side by side */
.art-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.art .ev-btn { margin: 0; padding: 4px 12px; border-color: var(--ink); color: var(--ink); background: var(--white); }
.art .ev-btn:hover, .art .ev-btn:active { background: var(--pill); }

/* coffee map, embedded */
.sec-coffee { background: #383934; color: var(--white); }
.coffee-map { display: block; width: 100%; height: 420px; border: 0; border-radius: 10px; background: #2e312f; }

/* useful links: grouped, centred, white pills sized to their text */
.sec-useful { background: #949189; color: var(--white); display: flex; flex-direction: column; align-items: center; text-align: center; }
.sec-useful h2 { margin-bottom: 4px; }
.sec-useful h3 { font-size: 14px; margin: 22px 0 10px; }
.sec-useful .ev-btn { max-width: 100%; margin: 0 0 8px; padding: 4px 22px; background: var(--white); color: var(--ink); border-color: var(--ink); }
.sec-useful .ev-btn:hover, .sec-useful .ev-btn:active { background: var(--pill); }

/* plain list rows (links, sub-pages) */
.list { list-style: none; padding: 0; margin: 4px 0 0; }
.list a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; line-height: 1.45; color: var(--ink); }
.list small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.list a::after { content: ""; flex: none; width: 7px; height: 7px; border-right: 1.4px solid var(--muted); border-top: 1.4px solid var(--muted); transform: rotate(45deg); margin-right: 4px; }
.list a[target]::after { content: "↗"; width: auto; height: auto; border: 0; transform: none; color: var(--muted); }

/* cards: registration, exhibitions */
.card { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 4px 0 14px; border-bottom: 1px solid var(--line); text-decoration: none; margin-bottom: 14px; }
.card.reg { border-bottom: 0; margin-bottom: 0; }
.card .thumb { width: 76px; height: 76px; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.card .thumb svg { width: 44px; height: auto; }
.card h3 { font-weight: 500; }
.card p { line-height: 1.65; margin: 6px 0 8px; color: var(--ink-2); }
.card.pick { grid-template-columns: 1fr; }

/* direction steps */
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 24px; }
.steps img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.steps p { margin: 8px 0 0; }
.outro { margin-top: 16px; }

/* taxi card (Japanese, for the driver) */
.taxi { background: var(--white); border-radius: 8px; padding: 16px; font-weight: 500; line-height: 1.75; }
.taxi .addr2 { font-weight: 700; }

/* tables, notes, figures, models */
.table { overflow-x: auto; margin: 0 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: 12px; line-height: 1.55; }
.wide-table table { min-width: 540px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
.qa { padding: 12px 0; border-bottom: 1px solid var(--line); }
.qa p { margin: 0; color: var(--ink-2); }
.note { background: var(--soft); border-radius: 10px; padding: 12px 14px; color: var(--ink-2); }
.fig { margin: 0 0 14px; }
.fig button { all: unset; cursor: zoom-in; display: block; width: 100%; }
.fig img { width: 100%; border-radius: 8px; }
.fig figcaption { font-size: 12px; margin-top: 6px; color: var(--muted); }
.model { border: 0; width: 100%; aspect-ratio: 360 / 562; max-height: 720px; display: block; margin: 4px 0 18px; border-radius: 12px; background: var(--soft); }
.hero { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin: 4px 0 8px; }

/* galleries */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid button { all: unset; cursor: zoom-in; display: block; }
.grid img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: var(--soft); }
.letter { margin: 34px 0; } .letter p { line-height: 1.95; }

/* black footer: the owner's hand-written wordmark in white, address, copyright */
.site-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 24px calc(32px + env(safe-area-inset-bottom, 0px)); background: #111; color: #bdbdbd; text-align: center; font-size: 12px; line-height: 1.7; }
.site-foot img { width: 96px; height: auto; filter: brightness(0) invert(1); margin-bottom: 10px; }
.site-foot p { margin: 0; max-width: 300px; }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(255,255,255,.98); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; cursor: zoom-out; }
.lb.on { display: flex; }
.lb img { max-height: 100%; max-width: 100%; object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
  .tabs a, .acc-panel, .acc-inner, .acc-head::after, .ft-blob, .ft-tabs button, .sc, .sc-body, .sc-inner { transition: none; }
  .ft-pane { animation: none; }
}
