@font-face { font-family: 'TRIP Roboto Condensed'; src: url(/fonts/roboto-condensed-black.woff2) format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'TRIP Barlow Condensed'; src: url(/fonts/barlow-condensed.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'TRIP Noto Serif TC'; src: url(/fonts/noto-serif-tc.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'TRIP Huninn'; src: url(/fonts/huninn.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'TRIP WenKai'; src: url(/fonts/wenkai.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'TRIP IBM Plex Mono'; src: url(/fonts/plex-mono.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'TRIP Cormorant'; src: url(/fonts/cormorant.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'TRIP Special Elite'; src: url(/fonts/special-elite.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'TRIP Inter'; src: url(/fonts/inter.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'TRIP Instrument Serif'; src: url(/fonts/instrument-serif.woff2) format('woff2'); font-weight: 400; font-display: swap; }

.hero-heading {
  --size-limit: var(--title-size,216px);
  font-family: 'TRIP Roboto Condensed', 'Arial Narrow', sans-serif;
  font-size: min(var(--size-limit), 17cqw);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.025em;
  color: var(--title-color,#151515);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.hero-heading[data-font='about-serif'] { font-family: 'TRIP Noto Serif TC', Georgia, serif; font-weight: 500; }
.hero-heading[data-font='sans'] { font-family: 'TRIP Inter', Arial, sans-serif; font-weight: 700; }
.hero-heading[data-font='serif'] { font-family: 'TRIP Instrument Serif', Georgia, serif; font-weight: 400; }
.hero-heading[data-font='huninn'] { font-family: 'TRIP Huninn', sans-serif; font-weight: 400; }
.hero-heading[data-font='wenkai'] { font-family: 'TRIP WenKai', Georgia, serif; font-weight: 700; }
.hero-heading[data-font='plex-mono'] { font-family: 'TRIP IBM Plex Mono', monospace; font-weight: 700; }
.hero-heading[data-font='barlow-condensed'] { font-family: 'TRIP Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 700; }
.hero-heading[data-font='cormorant'] { font-family: 'TRIP Cormorant', Georgia, serif; font-weight: 700; }
.hero-heading[data-font='special-elite'] { font-family: 'TRIP Special Elite', monospace; font-weight: 400; }
.story-copy [data-story-part] { overflow-wrap: anywhere; }
.story-copy [data-story-part='title'] {
  font: 760 var(--story-size, 52px)/1.12 var(--serif, Georgia, serif);
  letter-spacing: -.07em;
  text-wrap: balance;
}
.story-copy [data-story-part='body'] {
  color: var(--muted);
  font-size: var(--story-size, clamp(.97rem, 1.3vw, 1.15rem));
  line-height: 1.65;
  white-space: pre-line;
}
.story-copy [data-font='sans'] { font-family: system-ui, 'Microsoft JhengHei', sans-serif; }
.story-copy [data-font='serif'] { font-family: 'Songti TC', 'Noto Serif CJK TC', 'PMingLiU', 'TRIP Noto Serif TC', Georgia, serif; }
.story-copy [data-font='kai'] { font-family: 'Kaiti TC', 'DFKai-SB', 'TRIP WenKai', 'Noto Serif CJK TC', serif; }
@media (max-width: 660px) {
  .story-copy [data-story-part='title'] { font-size: var(--story-mobile-size, 31px); }
  .story-copy [data-story-part='body'] { font-size: var(--story-mobile-size, clamp(.97rem, 1.3vw, 1.15rem)); }
}
#panel.site-panel { border: 0; background: transparent; border-radius: 0; padding: .45rem 0 0; }
.site-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: clamp(1.4rem, 4vw, 3.5rem); align-items: start; margin-top: 1.15rem; }
.site-form, .site-photos { display: grid; gap: 1.1rem; }
.site-type { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; }
.site-type .site-font { grid-column: 1/-1; }
.site-type input[type=color] { padding: .4rem; cursor: pointer; }
.site-slot { margin: 0; padding: .55rem 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.site-slot legend { padding-inline: 0 .5rem; }
.site-slot label { display: block; margin-top: .38rem; }
.site-slot input[type=file]::file-selector-button { color: var(--deep); border: 0; background: #e8eff1; padding: .42rem .65rem; font: inherit; margin-right: .45rem; border-radius: 5px; cursor: pointer; }
.site-story summary { cursor: pointer; font-weight: 700; padding-block: .45rem; }
.site-story .site-type { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: .8rem; }
.site-story .site-type + .site-type { margin-top: 1.25rem; }
.site-story .site-type > legend { font-size: .95rem; font-weight: 700; }
.site-form .actions { align-items: center; }
.site-preview { position: sticky; top: 1.2rem; }
.site-preview-head { margin-bottom: .6rem; }
.site-preview-head h3 { font-size: 1rem; }
.site-preview .hero-art { container-type: inline-size; padding: clamp(1.5rem, 4vw, 3rem) .8rem; text-align: center; background: #faf9f6; border: 1px solid #d7d5d0; }
.site-preview .hero-heading { --size-limit: calc(var(--title-size,216px) * .48); font-size: min(var(--size-limit), 16cqw); white-space: nowrap; }
.preview-images { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .6rem; margin: 1.35rem auto 0; max-width: 24rem; }
.preview-images img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.site-story-preview { display: grid; gap: 1rem; }
.site-story-preview .story-copy { padding-block-start: 1rem; border-top: 1px solid var(--line); }
.site-story-preview .story-copy [data-story-part='body'] { margin-top: .45rem; }
@media (min-width: 721px) {
  .site-preview { max-height: calc(100dvh - 2.4rem); overflow: auto; }
}

@media (max-width: 720px) {
  .site-layout { grid-template-columns: 1fr; }
  .site-preview { position: static; grid-row: 1; }
}
@media (max-width: 590px) {
  .hero-heading, .site-preview .hero-heading { --size-limit: var(--title-mobile-size,64px); }
  .site-type { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
