@import url('./design-system/tokens.css');
@import url('./design-system/options.css');
@layer reset, base, layout, components, responsive;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, figure { margin: 0; }
  button, input, textarea, select { font: inherit; }
  button, a { -webkit-tap-highlight-color: transparent; }
  button { color: inherit; cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; }
  button { border: 0; background: none; padding: 0; }
  [hidden] { display: none !important; }
}
@layer base {
  :root { --paper: #f7f7f5; --ink: #181a1d; --muted: #6b6c70; --blue: #2937ce; --line: #d9d9d5; --rail: 192px; --gutter: clamp(24px, 4.2vw, 80px); }
  html { scroll-behavior: smooth; scroll-padding-top: 35px; }
  body { background: var(--paper); color: var(--ink); font-family: var(--sidus-font-sans); font-size: var(--sidus-font-size-body); -webkit-font-smoothing: antialiased; }
  body.dialog-open, body.menu-open { overflow: hidden; }
  ::selection { background: #d9dcff; color: var(--ink); }
  :focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
  .svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
  .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
  .icon-button { width: 44px; height: 44px; display: inline-grid; place-items: center; }
  .eyebrow { font-size: 10px; font-weight: 500; letter-spacing: .26em; line-height: 1.5; text-transform: uppercase; }
  h1, h2 { font-weight: 600; letter-spacing: -.065em; }
  h2 { font-size: clamp(44px, 5.6cqw, 86px); line-height: .98; }
  .text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.65; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color .2s; }
  .text-link:hover { color: var(--blue); }
  .text-link .icon { width: 13px; height: 13px; }
  .skip-link { position: fixed; left: 20px; top: -60px; z-index: 30; background: white; padding: 14px; }
  .skip-link:focus { top: 10px; }
}
@layer layout {
  #main, .site-footer { margin-left: var(--rail); }
  #brand-page { container-type: inline-size; }
  .site-header { position: fixed; inset: 0 auto 0 0; width: var(--rail); height: 100dvh; padding: 25px 26px 34px; display: flex; flex-direction: column; align-items: flex-start; z-index: 10; background: var(--paper); border-right: 1px solid var(--line); overflow-y: auto; }
  .brand { align-self: center; width: 140px; flex-shrink: 0; }
  .brand img, .footer-brand img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: contain; mix-blend-mode: multiply; }
  .site-header nav { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; font-size: 13px; }
  .site-header nav a { display: flex; align-items: center; min-height: 44px; padding: 11px 0; }
  .site-header nav a:hover { color: var(--blue); }
  .nav-left { margin-top: 52px; }
  .nav-right { margin-top: auto; padding-top: 48px; }
  .site-header .create-link { font-size: 13px; }
  .mobile-menu-button, .site-header .mobile-menu { display: none; }
  .menu-backdrop { position: fixed; inset: 78px 0 0; z-index: 8; background: #181a1d66; }
  .hero { position: relative; height: clamp(610px, 49.8cqw, 910px); min-height: 600px; isolation: isolate; color: white; overflow: hidden; background: #333435; }
  .hero-picture { position: absolute; inset: 0; z-index: -2; }
  .hero-picture img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
  .hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #00000018, transparent 65%), linear-gradient(0deg, #00000020, transparent 45%); z-index: -1; pointer-events: none; }
  .hero-intro { position: absolute; left: var(--gutter); top: 48px; font-size: 16px; line-height: 1.4; font-weight: 400; }
  .hero-title { position: absolute; left: var(--gutter); bottom: 79px; }
  .hero-title .eyebrow { margin-bottom: 22px; font-size: 10px; }
  .hero h1 { font-size: clamp(76px, 9.1cqw, 158px); line-height: .89; font-weight: 600; }
  .hero-caption { position: absolute; right: var(--gutter); bottom: 39px; font-size: 10px; opacity: .8; }
  .create-section { position: relative; margin: -43px auto 0; width: min(820px, calc(100% - 2 * var(--gutter))); z-index: 2; scroll-margin-top: 24px; }
  .create-form { min-height: 88px; background: #fff; display: flex; align-items: center; gap: 21px; padding: 15px 17px 15px 22px; border-radius: 9px; box-shadow: 0 8px 32px #00000009; }
  .attach-button { display: flex; align-items: center; gap: 10px; flex-shrink: 0; min-height: 46px; font-size: 11px; padding-right: 23px; border-right: 1px solid var(--line); }
  .plus-circle { display: grid; place-items: center; border: 1px solid #bbbdc2; border-radius: 50%; width: 30px; height: 30px; }
  .prompt-field { flex: 1; min-width: 0; align-self: center; }
  .prompt-field label { display: block; font-size: 8px; text-transform: uppercase; letter-spacing: .22em; text-align: center; margin-bottom: 10px; }
  .prompt-field input { width: 100%; min-height: 30px; padding: 2px 0; border: 0; border-radius: 0; outline: none; background: transparent; font-size: 15px; color: var(--ink); }
  .prompt-field input:focus-visible { box-shadow: 0 1px 0 var(--blue); }
  .prompt-field input::placeholder { color: #7c7d83; opacity: 1; }
  .create-submit { display: grid; place-items: center; background: var(--blue); color: white; width: 54px; height: 54px; flex-shrink: 0; border-radius: 2px; transition: background .2s, transform .2s; }
  .create-submit:hover { background: #1726b4; }
  .create-submit .icon { width: 25px; height: 25px; transition: transform .2s; }
  .create-submit:hover .icon { transform: translate(2px,-2px); }
  .create-submit:disabled { cursor: progress; opacity: .6; }
  .section-pad { padding-inline: var(--gutter); }
  .collection { padding-top: 84px; padding-bottom: 74px; }
  .collection-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 47px; }
  .collection-intro .eyebrow { margin-bottom: 22px; }
  .collection-aside { padding: 0 9% 9px 0; flex-shrink: 0; }
  .collection-aside p { font-size: 16px; line-height: 1.3; margin-bottom: 18px; }
  .collection-grid { display: grid; grid-template-columns: 1.24fr .78fr 1fr; align-items: end; gap: 3.8%; scroll-margin-top: 40px; }
  .piece-photo { display: block; width: 100%; overflow: hidden; position: relative; background: #e2e2df; }
  .piece-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.65,.35,1); }
  .piece-photo:hover img { transform: scale(1.045); }
  .piece-violet .piece-photo { aspect-ratio: 1.08; }
  .piece-violet img { object-position: 50% 64%; }
  .piece-orange .piece-photo { aspect-ratio: .95; }
  .piece-orange img { object-position: 50% 66%; }
  .piece-duo .piece-photo { aspect-ratio: .89; }
  .piece-duo img { object-position: 50% 65%; }
  .editorial-note { color: var(--muted); font-size: 12px; margin: 0 0 15px; }
  .piece-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 7px; margin-top: 19px; }
  .piece-caption h3 { font-size: 16px; line-height: 1.4; font-weight: 400; letter-spacing: -.025em; }
  .piece-caption h3 button { text-align: left; }
  .piece-caption .text-link { font-size: 11px; flex-shrink: 0; gap: 4px; }
  .piece-caption .icon { width: 11px; height: 11px; }
  .piece-credit { color: var(--muted); font-size: 12px; margin-top: 6px; }
  .photo-action { position: absolute; inset: auto 0 0; padding: 32px 20px 20px; text-align: left; color: #fff; display: flex; justify-content: space-between; background: linear-gradient(transparent, #0009); opacity: 0; transition: opacity .2s; font-size: 13px; }
  .piece-photo:hover .photo-action, .piece-photo:focus-visible .photo-action { opacity: 1; }
  .collection-disclosure { text-align: center; color: var(--muted); font-size: 11px; margin-top: 51px; }
  .approach { display: grid; grid-template-columns: 1fr 1fr; background: #f0f0ed; }
  .approach-copy { padding: 68px var(--gutter) 64px; }
  .approach-copy .eyebrow { margin-bottom: 26px; }
  .approach-copy h2 { white-space: nowrap; margin-bottom: 25px; }
  .approach-copy > p:not(.eyebrow) { font-size: 14px; line-height: 1.55; margin-bottom: 26px; }
  .approach-picture { overflow: hidden; min-height: 370px; }
  .approach-picture img { width: 100%; height: 100%; object-fit: cover; }
  .mobile-break { display: none; }
  .site-footer { padding: 16px var(--gutter); min-height: 100px; display: flex; align-items: center; gap: 30px; }
  .footer-brand { width: 120px; flex-shrink: 0; }
  .site-footer > p { color: var(--muted); font-size: 11px; }
  .site-footer nav { display: flex; gap: 32px; margin-left: auto; align-items: center; font-size: 12px; }
  .site-footer nav button, .site-footer nav a { padding: 15px 0; }
  .site-footer nav button:hover, .site-footer nav a:hover { color: var(--blue); }
  .footer-note { font-size: 10px; color: var(--muted); }
}
@layer components {
  .attachment-preview { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12px; background: #fff; border: 1px solid var(--line); padding: 6px 8px; width: fit-content; max-width: 100%; border-radius: 5px; }
  .attachment-preview img { width: 38px; height: 38px; object-fit: cover; }
  .attachment-preview span { overflow: hidden; text-overflow: ellipsis; max-width: 350px; white-space: nowrap; }
  .form-error { color: #a12d2b; margin-top: 12px; font-size: 13px; line-height: 1.5; }
  .detail-dialog { width: min(1050px, calc(100% - 64px)); max-height: calc(100dvh - 64px); padding: 0; border: 0; background: var(--paper); color: var(--ink); overscroll-behavior: contain; }
  .detail-dialog::backdrop { background: #17191f80; backdrop-filter: blur(5px); }
  .dialog-close { position: absolute; right: 12px; top: 12px; z-index: 2; border-radius: 50%; background: #f7f7f5ed; }
  .detail-dialog:has(.piece-detail) { overflow: hidden; }
  .detail-dialog:has(.piece-detail) #dialog-content { max-height: calc(100dvh - 64px); overflow: auto; overscroll-behavior: contain; }
  .piece-detail { display: grid; grid-template-columns: 1fr 1fr; }
  .piece-detail > img { width: 100%; height: 100%; max-height: 710px; object-fit: cover; }
  .detail-copy { padding: 75px 48px 45px; }
  .detail-copy .eyebrow { margin-bottom: 25px; }
  .detail-copy h2 { font-size: 56px; margin-bottom: 23px; overflow-wrap: anywhere; }
  .detail-copy p { font-size: 15px; line-height: 1.65; }
  .detail-meta { margin: 28px 0; }
  .detail-meta div { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 25px; justify-content: space-between; font-size: 12px; }
  .detail-meta dt { color: var(--muted); }
  .detail-meta dd { margin: 0; text-align: right; }
  .primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 50px; padding: 15px 20px; background: var(--blue); color: white; font-size: 13px; transition: background .2s; }
  .primary-button:hover { background: #1c29aa; }
  .detail-copy .primary-button { width: 100%; }
  .detail-copy .fine-print { font-size: 11px; color: var(--muted); margin-top: 15px; line-height: 1.5; }
  .info-detail { padding: 70px; max-width: 900px; }
  .info-detail h2 { font-size: clamp(38px, 5vw, 66px); margin: 25px 0; }
  .info-detail .intro { max-width: 650px; font-size: 18px; line-height: 1.5; }
  .info-sections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 38px 0; }
  .info-sections h3 { font-size: 16px; font-weight: 500; margin-bottom: 12px; }
  .info-sections p { color: #57585c; line-height: 1.7; font-size: 13px; }
  .info-detail .fine-print { font-size: 12px; color: var(--muted); line-height: 1.7; }
  .toast { position: fixed; z-index: 20; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: white; padding: 14px 22px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 30px); text-align: center; }
  .toast.visible { opacity: 1; transform: translate(-50%, 0); }
  .route-shell { max-width: 1180px; margin: 0 auto; padding: 65px var(--gutter) 90px; min-height: calc(100dvh - 192px); }
  .route-shell > .text-link { margin-bottom: 55px; }
  .route-shell h1 { font-size: clamp(45px, 6vw, 80px); line-height: .98; margin: 25px 0; max-width: 790px; }
  .route-lead { font-size: 17px; line-height: 1.6; max-width: 620px; color: #5b5c61; }
  .route-actions { display: flex; gap: 25px; align-items: center; margin-top: 32px; flex-wrap: wrap; }
  .draft-editor { margin-top: 42px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 290px); gap: 50px; align-items: start; }
  .draft-editor label { display: block; font-size: 12px; margin: 0 0 10px; }
  .draft-editor textarea { width: 100%; min-height: 170px; padding: 18px; background: white; color: var(--ink); border: 1px solid var(--line); resize: vertical; line-height: 1.6; font-size: 16px; }
  .draft-context img { width: 100%; max-height: 290px; object-fit: cover; }
  .draft-context figcaption { font-size: 12px; line-height: 1.6; margin-top: 10px; color: var(--muted); }
  .draft-context .text-link { margin-top: 14px; font-size: 12px; }
  .storage-note { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 18px; }
  .saved-ideas { margin-top: 55px; border-top: 1px solid var(--line); }
  .saved-ideas h2 { font-size: 28px; letter-spacing: -.035em; margin: 30px 0 15px; }
  .draft-row { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
  .draft-row > a { flex: 1; min-width: 0; }
  .draft-row strong { font-size: 16px; font-weight: 500; display: block; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
  .draft-row small { color: var(--muted); display: block; font-size: 11px; margin-top: 8px; }
  .draft-row .text-link { font-size: 12px; }
  .account-note { margin-top: 38px; max-width: 660px; border-top: 1px solid var(--line); padding-top: 30px; line-height: 1.7; color: #595b60; }
}
@layer responsive {
  @media (min-width: 1800px) { .collection { padding-top: 110px; } }
  @media (max-width: 1100px) {
    .hero h1 { font-size: 10cqw; }
    .hero-title { bottom: 93px; }
    .collection-aside { padding-right: 0; }
    .piece-caption { flex-direction: column; align-items: flex-start; gap: 4px; }
    .piece-caption h3 { font-size: 15px; }
    .piece-credit { font-size: 10px; }
    .approach-copy { padding-block: 55px; }
    .approach-copy h2 { font-size: 6.1cqw; }
    .footer-note { display: none; }
    .detail-copy { padding: 65px 28px 30px; }
  }
  @media (max-width: 960px) {
    :root { --rail: 0px; }
    html { scroll-padding-top: 96px; }
    .site-header { position: sticky; top: 0; width: 100%; height: 78px; padding: 0 var(--gutter); display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
    .site-header .nav-left, .site-header .nav-right { display: none; }
    .brand { grid-column: 2; grid-row: 1; justify-self: center; width: 145px; }
    .mobile-menu-button { display: inline-grid; grid-column: 1; grid-row: 1; justify-self: start; }
    .site-header .mobile-menu { position: fixed; display: flex; top: 78px; bottom: 0; left: 0; width: min(310px, 86vw); background: var(--paper); border-right: 1px solid var(--line); padding: 35px var(--gutter); flex-direction: column; align-items: flex-start; gap: 10px; overflow-y: auto; box-shadow: 12px 0 30px #0000000c; }
    .site-header .mobile-menu a { display: block; width: 100%; font-size: 17px; }
    .hero { height: 660px; min-height: 0; }
    .hero-picture img { object-position: 62% 50%; }
    .hero-intro { font-size: 13px; top: 30px; }
    .hero h1 { font-size: 11.4vw; }
    .hero-title .eyebrow { font-size: 8px; letter-spacing: .2em; }
    .hero-title { bottom: 105px; }
    .hero-caption { bottom: 58px; font-size: 9px; }
    .create-form { gap: 14px; padding: 14px; }
    .attach-button { padding-right: 13px; }
    .attach-label { display: none; }
    .create-submit { width: 47px; height: 47px; }
    .prompt-field input { font-size: 16px; }
    .prompt-field label { font-size: 7px; letter-spacing: .18em; margin-bottom: 8px; }
    .collection { padding-top: 68px; padding-bottom: 50px; }
    .collection-intro { display: block; margin-bottom: 36px; }
    .collection-aside { margin-top: 26px; display: flex; gap: 20px; justify-content: space-between; align-items: flex-end; }
    .collection-aside p { font-size: 13px; margin: 0; }
    .collection-aside .text-link { font-size: 12px; }
    .collection-grid { gap: 22px; grid-template-columns: 1fr 1fr; }
    .piece-violet { grid-column: span 2; width: 86%; }
    .piece-orange { padding-top: 20px; }
    .piece-duo { align-self: end; }
    .piece-caption .text-link { font-size: 11px; }
    .piece-credit { font-size: 10px; }
    .editorial-note { font-size: 11px; line-height: 1.4; }
    .approach { grid-template-columns: minmax(0, 1fr); }
    .approach-copy { padding-block: 48px; }
    .approach-copy h2 { font-size: clamp(44px, 8vw, 66px); }
    .approach-picture { height: 330px; min-height: 0; }
    .site-footer { flex-wrap: wrap; gap: 15px; padding-block: 15px; }
    .site-footer > p { margin-left: auto; }
    .site-footer nav { width: 100%; justify-content: space-between; margin: 0; }
    .detail-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
    .detail-dialog:has(.piece-detail) #dialog-content { max-height: calc(100dvh - 24px); }
    .piece-detail { grid-template-columns: 1fr; }
    .piece-detail > img { height: auto; max-height: min(70dvh, 710px); object-fit: contain; object-position: center; }
    .detail-copy { padding: 30px 25px; }
    .detail-copy h2 { font-size: 44px; }
    .info-detail { padding: 65px 26px 32px; }
    .info-sections { grid-template-columns: 1fr; gap: 24px; }
    .info-detail .intro { font-size: 16px; }
    .draft-editor { grid-template-columns: 1fr; gap: 28px; }
    .draft-context { max-width: 260px; }
    .route-shell { padding-top: 38px; }
    .route-shell > .text-link { margin-bottom: 30px; }
  }
  @media (max-width: 420px) {
    .approach-copy h2 { font-size: 11vw; }
    .hero { height: 610px; }
    .hero h1 { font-size: 12vw; letter-spacing: -.065em; }
    .hero-intro { font-size: 12px; }
    .hero-picture img { object-position: 64% 50%; }
    .hero-title { bottom: 117px; }
    .hero-title .eyebrow { max-width: 230px; line-height: 1.7; }
    .create-section { width: calc(100% - 32px); }
    .create-form { padding-inline: 12px; gap: 10px; }
    .attach-button { padding-right: 9px; }
    .plus-circle { width: 25px; height: 25px; }
    .create-submit { width: 43px; }
    .prompt-field input { font-size: 14px; }
    .collection h2 { font-size: 10.5vw; }
    .collection-grid { grid-template-columns: 1fr; gap: 40px; }
    .piece-violet { grid-column: auto; width: 100%; }
    .piece-orange { width: 76%; justify-self: end; padding: 0; }
    .piece-duo { width: 88%; }
    .piece-caption { flex-direction: row; align-items: baseline; }
    .piece-credit { font-size: 11px; }
    .piece-caption .text-link { font-size: 10px; }
    .collection-disclosure { max-width: 250px; margin-inline: auto; line-height: 1.6; }
    .mobile-break { display: inline; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }
}
