/* ABOUTME: Editorial layout and responsive shell for two trip-planning prototypes. */
/* ABOUTME: Container queries keep the embedded phone preview faithful to narrow screens. */
:root {
  --paper: #f8f7f2;
  --surface: #fffefa;
  --ink: #263c32;
  --muted: #697269;
  --line: #dedfd5;
  --accent: #355c44;
  --soft: #edf0e7;
  --warm: #ba673f;
  --serif: 'Songti SC', 'STSong', 'Noto Serif CJK SC', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #e9e9e3; color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.65; }
button, input, textarea, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; }
button, input, textarea, select { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); }
button { transition: background .18s ease, color .18s ease, border-color .18s ease; }
svg { display: inline-block; width: 19px; height: 19px; flex: 0 0 auto; vertical-align: middle; }
button svg { pointer-events: none; }
[hidden] { display: none !important; }
.prototype-bar { position: sticky; top: 0; z-index: 10; min-height: 66px; display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 10px 32px; background: #24322d; color: #f5f4ed; }
.prototype-title { display: flex; align-items: center; gap: 9px; font-size: 12px; letter-spacing: .04em; }
.desktop-label { color: #c0c9c1; }
.prototype-dot { width: 6px; height: 6px; background: #d4c48f; border-radius: 50%; }
.style-switch { display: flex; border: 1px solid #5e6c63; padding: 3px; border-radius: 7px; }
.style-switch button { background: transparent; border: 0; color: #d3dcd5; padding: 7px 18px; border-radius: 4px; font-size: 12px; }
.style-switch button span { margin-left: 7px; }
.style-switch button[aria-pressed='true'] { background: #f6f4e9; color: #253b30; }
.preview-toggle { background: transparent; border: 1px solid #6b786f; color: #f7f7ef; padding: 7px 14px; border-radius: 4px; font-size: 12px; }
.preview-toggle:hover { background: #3c4d43; }
.experience { width: 100%; max-width: 1512px; margin: 0 auto; container: experience / inline-size; background: var(--paper); }
.experience.phone { max-width: 390px; margin: 30px auto; border: 7px solid #26352e; border-radius: 32px; overflow: clip; box-shadow: 0 20px 60px #0002; }
.app-surface { padding: 0 6.2%; }
.site-header { display: flex; align-items: center; gap: 28px; height: 94px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; flex: 0 0 auto; }
.brand strong { font-size: 24px; letter-spacing: -.04em; }
.brand-mark { background: var(--ink); color: var(--paper); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; line-height: 1; }
.brand-en { font-size: 10px; letter-spacing: .13em; margin-left: 3px; margin-top: 5px; }
.header-caption { color: var(--muted); font-size: 12px; flex: 1; }
.header-actions { display: flex; gap: 10px; margin-left: auto; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 5px; padding: 10px 18px; font-size: 13px; font-weight: 500; text-decoration: none; }
.primary { color: #fff; background: var(--accent); }
.primary:hover { background: var(--ink); }
.secondary { color: var(--ink); border-color: var(--line); background: transparent; }
.secondary:hover { background: var(--soft); }
.hero { min-height: 440px; display: grid; grid-template-columns: 1fr 48%; gap: 7%; align-items: center; padding: 42px 0 35px; }
.eyebrow { font-size: 10px; letter-spacing: .16em; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.tiny-line { display: inline-block; width: 24px; height: 1px; background: currentColor; }
.volume { margin-left: auto; font-size: 9px; color: var(--muted); }
.destination-label { display: flex; gap: 10px; align-items: center; color: var(--warm); font-size: 12px; margin: 28px 0 12px; }
.destination-label span { font-size: 10px; letter-spacing: .15em; }
h1 { font-family: var(--serif); font-size: clamp(30px, 3.65vw, 54px); font-weight: 600; line-height: 1.32; margin: 0; letter-spacing: -.025em; }
.title-dot { color: var(--warm); }
.hero-description { font-size: 13px; color: var(--muted); line-height: 1.9; margin: 20px 0 26px; }
.trip-meta { display: flex; flex-wrap: wrap; gap: 23px; font-size: 12px; align-items: center; }
.trip-meta span { display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; }
.trip-meta svg { width: 16px; height: 16px; color: var(--muted); }
.hero-image-wrap { position: relative; padding: 12px 12px 0; background: #eeeee5; border: 1px solid #e0e1d7; }
.hero-image { display: block; width: 100%; aspect-ratio: 1.6; object-fit: cover; object-position: center; filter: saturate(.68) contrast(.95); }
.photo-caption { display: flex; justify-content: space-between; padding: 12px 1px 13px; color: #536052; font-size: 10px; letter-spacing: .08em; }
.round-stamp { position: absolute; right: -18px; top: -24px; width: 87px; height: 87px; background: #eee6c9; color: #5e654c; border: 1px solid #bec3a5; outline: 3px double #eee6c9; border-radius: 50%; text-align: center; padding: 10px 5px; line-height: 1.35; font-size: 10px; transform: rotate(12deg); }
.round-stamp strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.round-stamp small { font-size: 6px; letter-spacing: .08em; }
.together-strip { display: flex; align-items: center; gap: 15px; padding: 18px 0 24px; border-bottom: 1px solid var(--line); }
.together-people { display: flex; padding-left: 4px; }
.together-people .avatar { margin-left: -4px; border: 3px solid var(--paper); }
.together-strip p { font-size: 12px; color: var(--muted); margin: 0; }
.local-save { font-size: 11px; color: var(--muted); margin-left: auto; display: inline-flex; gap: 6px; align-items: center; }
.local-save svg { width: 13px; height: 13px; }
.main-tabs { display: flex; gap: 36px; height: 76px; border-bottom: 1px solid var(--line); }
.main-tabs button { display: flex; align-items: center; gap: 9px; padding: 0 1px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 14px; }
.main-tabs button span { font-size: 9px; letter-spacing: .1em; }
.main-tabs button[aria-current='page'] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.main-tabs button:hover { color: var(--ink); }
.content-layout { display: grid; grid-template-columns: 214px minmax(0, 1fr); gap: 62px; padding: 38px 0 70px; }
.trip-sidebar { min-width: 0; }
.sidebar-heading { font-size: 10px; color: var(--muted); letter-spacing: .15em; margin: 1px 0 18px; }
.day-nav { display: flex; flex-direction: column; gap: 7px; }
.day-button { display: grid; grid-template-columns: 35px 1fr 14px; align-items: center; gap: 9px; background: transparent; border: 1px solid transparent; width: 100%; padding: 12px 10px; text-align: left; border-radius: 5px; }
.day-button:hover { background: var(--soft); }
.day-button.selected { border-color: #d7decf; background: var(--soft); }
.day-number { font-family: Georgia, serif; font-size: 27px; font-weight: 400; color: var(--muted); }
.selected .day-number { color: var(--accent); }
.day-button strong { display: block; font-size: 13px; font-weight: 500; }
.day-button small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.day-button svg { width: 14px; height: 14px; }
.sidebar-note { padding: 25px 16px 20px; margin-top: 28px; border: 1px solid var(--line); border-radius: 4px; }
.sidebar-note .eyebrow { letter-spacing: .1em; font-size: 9px; }
.sidebar-note h3 { margin: 12px 0 5px; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.sidebar-note p { font-size: 11px; color: var(--muted); margin: 0 0 15px; }
.text-button { border: 0; background: transparent; color: var(--accent); padding: 4px 0; display: inline-flex; gap: 8px; align-items: center; font-size: 12px; min-height: 32px; }
.text-button:hover { text-decoration: underline; }
.text-button svg { width: 14px; height: 14px; }
.content-panel { min-width: 0; }
.section-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 25px; }
.section-heading .eyebrow { color: var(--warm); font-size: 10px; }
.section-heading h2 { font-family: var(--serif); font-size: 30px; font-weight: 500; margin: 6px 0 5px; line-height: 1.5; }
.section-heading p { margin: 0; font-size: 12px; color: var(--muted); }
.day-counter { color: var(--muted); font-size: 11px; padding-top: 8px; white-space: nowrap; }
.permission-notice { display: flex; align-items: center; gap: 8px; background: var(--soft); padding: 10px 14px; border-radius: 4px; font-size: 12px; margin: 0 0 22px; }
.slot { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 21px; padding: 0 0 24px; position: relative; }
.slot:not(:last-child)::before { content: ''; width: 1px; background: var(--line); position: absolute; top: 36px; bottom: 0; left: 14px; }
.slot-label { display: flex; gap: 9px; align-items: flex-start; padding-top: 15px; font-size: 12px; white-space: nowrap; }
.slot-label svg { width: 16px; height: 16px; margin-top: 2px; }
.slot-icon { display: inline-flex; width: 28px; height: 28px; justify-content: center; background: var(--paper); z-index: 1; }
.slot-body { min-width: 0; }
.entry { position: relative; padding: 19px 21px 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 9px; }
.entry.featured { border-left: 3px solid var(--accent); }
.entry-time { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: .03em; margin-bottom: 7px; }
.entry-time svg { width: 13px; height: 13px; }
.entry-time.unset { color: var(--muted); }
.entry h3 { font-size: 15px; font-weight: 500; margin: 0; padding-right: 23px; line-height: 1.65; overflow-wrap: anywhere; }
.entry-description { margin: 6px 0 0; font-size: 12px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.entry-footer { display: flex; gap: 7px; align-items: center; font-size: 10px; color: var(--muted); margin-top: 13px; }
.entry-edit { position: absolute; top: 12px; right: 10px; }
.icon-button { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: 4px; color: var(--muted); }
.icon-button:hover { color: var(--accent); background: var(--soft); }
.icon-button svg { width: 16px; height: 16px; }
.add-entry { border: 1px dashed var(--line); background: transparent; width: 100%; border-radius: 5px; padding: 9px 14px; font-size: 11px; color: var(--muted); text-align: left; display: flex; gap: 7px; align-items: center; min-height: 38px; }
.add-entry:hover { border-color: var(--accent); color: var(--accent); background: var(--soft); }
.add-entry svg { width: 14px; height: 14px; }
.empty-slot { color: var(--muted); font-size: 12px; padding: 17px 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 12px; color: #3b4b3c; }
.avatar.small { width: 21px; height: 21px; font-size: 9px; }
.olive { background: #dce2cc; }.clay { background: #ebd5c5; color: #754d38; }.rose { background: #ead6da; color: #79545f; }.blue { background: #d3e0e5; color: #42636f; }.sand { background: #eee3c6; color: #7b693b; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0 32px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.footer-brand { font-size: 18px; color: var(--ink); font-weight: 600; }
.footer-brand small { font-size: 8px; font-weight: 400; letter-spacing: .1em; margin-left: 10px; }
.demo-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 18px 20px; color: #556258; font-size: 11px; }
.demo-controls select { max-width: 210px; background: #f6f7f1; border: 1px solid #c3c9bd; border-radius: 4px; padding: 6px 10px; color: #374d3d; font-size: 11px; }
.demo-controls button { border: 0; border-bottom: 1px solid #9da99e; background: transparent; font-size: 11px; padding: 3px 0; color: #556258; }
.demo-controls a { font-size: 9px; }
@container experience (max-width: 950px) {
  .app-surface { padding: 0 5%; }
  .header-caption { display: none; }
  .hero { grid-template-columns: 1fr 45%; gap: 6%; }
  h1 { font-size: 36px; }
  .trip-meta { gap: 11px; font-size: 11px; }
  .content-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 30px; }
  .day-button { padding: 10px 5px; gap: 5px; }
  .day-button small { font-size: 9px; }
  .slot { grid-template-columns: 65px minmax(0, 1fr); gap: 12px; }
}
@container experience (max-width: 650px) {
  .app-surface { padding: 0 6%; }
  .site-header { height: 72px; gap: 12px; }
  .brand strong { font-size: 21px; }.brand-mark { width: 27px; height: 27px; font-size: 22px; }.brand-en { display: none; }
  .header-actions { gap: 6px; }.header-actions .button { font-size: 11px; padding: 8px 10px; min-height: 36px; gap: 5px; }.header-actions svg { width: 15px; height: 15px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 30px; padding: 28px 0 23px; }
  .eyebrow { font-size: 9px; }.volume { font-size: 8px; }
  .destination-label { margin-top: 24px; margin-bottom: 9px; }
  h1 { font-size: 36px; line-height: 1.35; }
  .hero-description { font-size: 12px; margin: 14px 0 21px; }
  .trip-meta { gap: 19px; font-size: 11px; }
  .hero-image-wrap { padding: 8px 8px 0; }.hero-image { aspect-ratio: 1.85; }
  .photo-caption { padding: 9px 0 10px; font-size: 9px; }
  .round-stamp { width: 68px; height: 68px; top: -16px; right: -10px; padding-top: 6px; font-size: 8px; }.round-stamp strong { font-size: 19px; }.round-stamp small { font-size: 5px; }
  .together-strip { gap: 10px; padding: 10px 0 20px; flex-wrap: wrap; }.together-strip .avatar { width: 29px; height: 29px; font-size: 10px; }.together-strip p { font-size: 10px; flex: 1; }.local-save { display: none; }
  .main-tabs { height: 61px; justify-content: space-between; gap: 8px; }.main-tabs button { font-size: 13px; gap: 5px; }.main-tabs button span { display: none; }
  .content-layout { display: block; padding: 24px 0 40px; }.sidebar-heading, .sidebar-note { display: none; }
  .day-nav { flex-direction: row; gap: 7px; margin-bottom: 28px; }.day-button { grid-template-columns: 25px 1fr; gap: 6px; padding: 8px; }.day-number { font-size: 23px; }.day-button strong { font-size: 11px; }.day-button small { font-size: 9px; }.day-button svg { display: none; }
  .section-heading { margin-bottom: 22px; }.section-heading h2 { font-size: 24px; }.section-heading p { font-size: 11px; }.day-counter { font-size: 9px; }
  .slot { grid-template-columns: 1fr; gap: 10px; padding-bottom: 24px; }.slot:not(:last-child)::before { display: none; }.slot-label { padding-top: 0; gap: 3px; font-size: 12px; align-items: center; }.slot-icon { height: 24px; }.slot-label svg { margin-top: 3px; }
  .entry { padding: 16px 17px 13px; }.entry h3 { font-size: 14px; }.entry-description { font-size: 12px; }.entry-footer { margin-top: 12px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 7px; padding: 22px 0; }.footer-brand small { font-size: 7px; }
}
@media (max-width: 650px) {
  .prototype-bar { flex-wrap: wrap; gap: 9px; padding: 12px 16px; }.prototype-title { font-size: 10px; }.desktop-label { display: none; }.preview-toggle { display: none; }.style-switch { margin-left: auto; }.style-switch button { padding: 6px 10px; font-size: 10px; }.style-switch button span { margin-left: 3px; }
  .experience.phone { width: 100%; border: 0; border-radius: 0; margin: 0 auto; }.demo-note { width: 100%; text-align: center; order: 3; }
}
@container experience (max-width: 360px) {
  h1 { font-size: 31px; }
  .trip-meta { gap: 12px; font-size: 10px; }
  .day-button { gap: 3px; padding: 7px 5px; }
  .day-button small { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
