/* =====================================================================
   SASH Website Collection: concept templates
   One markup (partials/site-template.php), three templates, two modes.
   Layout responds to the width of its own frame (container queries), so the
   same page renders as desktop or mobile inside any preview.
   ===================================================================== */

.wt {
  container-type: inline-size;
  --wt-display: "Playfair Display", Georgia, serif;
  --wt-body: Inter, system-ui, sans-serif;
  --wt-radius: 0px;
  font-family: var(--wt-body);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
.wt * { box-sizing: border-box; }
.wt-page { background: var(--wt-bg); color: var(--wt-text); min-height: 100%; }

/* Palettes ---------------------------------------------------------------- */
.wt-editorial.wt-light { --wt-bg: #F7F3EC; --wt-surface: #EFE8DC; --wt-text: #1C1B1A; --wt-muted: #6E675E; --wt-line: #DDD3C3; --wt-accent: #7E6236; --wt-on-accent: #FFFFFF; --wt-hero-a: #D9CBB4; --wt-hero-b: #A88E6B; }
.wt-editorial.wt-dark { --wt-bg: #1C1B1A; --wt-surface: #262423; --wt-text: #F3EEE4; --wt-muted: #B3AAA0; --wt-line: #3A3734; --wt-accent: #C9A46F; --wt-on-accent: #0B0B0C; --wt-hero-a: #4A4038; --wt-hero-b: #1C1916; }
.wt-modern.wt-light { --wt-bg: #FFFFFF; --wt-surface: #F1F2F4; --wt-text: #24262B; --wt-muted: #6B6F78; --wt-line: #E2E4E8; --wt-accent: #C93A2F; --wt-on-accent: #FFFFFF; --wt-hero-a: #3A3D45; --wt-hero-b: #15161A; }
.wt-modern.wt-dark { --wt-bg: #0E0F11; --wt-surface: #17191C; --wt-text: #F4F4F5; --wt-muted: #A0A4AD; --wt-line: #2A2D33; --wt-accent: #FF5C4D; --wt-on-accent: #0E0F11; --wt-hero-a: #2C2F36; --wt-hero-b: #08090A; }
.wt-crown.wt-light { --wt-bg: #FAF7F2; --wt-surface: #F1E9DC; --wt-text: #1A1712; --wt-muted: #75695A; --wt-line: #E4D8C4; --wt-accent: #B8914F; --wt-on-accent: #1A1712; --wt-hero-a: #E7D6B8; --wt-hero-b: #B38E57; }
.wt-crown.wt-dark { --wt-bg: #07080C; --wt-surface: #12131A; --wt-text: #F6EFE2; --wt-muted: #B5AA98; --wt-line: #26262E; --wt-accent: #D4B483; --wt-on-accent: #07080C; --wt-hero-a: #3B2F22; --wt-hero-b: #07080C; }

/* Typography presets (Website Studio) ------------------------------------- */
.wt-modern { --wt-display: Inter, system-ui, sans-serif; }
.wt.wt-font-classic { --wt-display: "Playfair Display", Georgia, serif; --wt-body: Georgia, "Times New Roman", serif; }
.wt.wt-font-modern { --wt-display: Inter, system-ui, sans-serif; --wt-body: Inter, system-ui, sans-serif; }
.wt.wt-font-mixed { --wt-display: "Playfair Display", Georgia, serif; --wt-body: Inter, system-ui, sans-serif; }

/* Shared pieces -------------------------------------------------------------- */
.wt-hl { display: none; }
.wt-editorial .wt-hl-editorial, .wt-modern .wt-hl-modern, .wt-crown .wt-hl-crown { display: inline; }
.wt-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--wt-accent); }
.wt-h1 { display: block; font-family: var(--wt-display); font-weight: 400; font-size: 64px; line-height: 1; letter-spacing: -0.02em; }
.wt-h2 { display: block; font-family: var(--wt-display); font-weight: 400; font-size: 34px; line-height: 1.1; letter-spacing: -0.01em; }
.wt-lead { display: block; font-size: 16px; line-height: 1.6; color: var(--wt-muted); max-width: 40ch; }
.wt-sub, .wt-card-sub { display: block; font-size: 12px; color: var(--wt-muted); }
.wt-btn { display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: var(--wt-radius); background: var(--wt-accent); color: var(--wt-on-accent); font-size: 13px; font-weight: 700; white-space: nowrap; }
.wt-btn-sm { height: 34px; padding: 0 16px; font-size: 12px; }
.wt-btn-ghost { background: transparent; color: var(--wt-text); box-shadow: inset 0 0 0 1px var(--wt-line); }
.wt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.wt-link { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--wt-accent); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.wt-photo-tag { position: absolute; left: 14px; bottom: 12px; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .28); padding: 3px 8px; border-radius: 999px; }

.wt-nav { display: flex; align-items: center; gap: 28px; padding: 22px 48px; border-bottom: 1px solid var(--wt-line); }
.wt-logo { display: inline-flex; align-items: center; gap: 10px; }
.wt-logo-mark { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--wt-accent); position: relative; }
.wt-logo-mark::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--wt-accent); }
.wt-logo-text { font-family: var(--wt-display); font-size: 20px; letter-spacing: .02em; }
.wt-links { display: flex; gap: 24px; margin-left: auto; font-size: 13px; font-weight: 500; color: var(--wt-muted); }
.wt-burger { display: none; width: 34px; height: 34px; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; }
.wt-burger i { display: block; height: 1.5px; background: var(--wt-text); }

/* Imagery: concept art in place of photography */
.wt-hero-art, .wt-queen-art, .wt-portrait, .wt-news-art { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--wt-hero-a), var(--wt-hero-b)); }
.wt-hero-art::before, .wt-queen-art::before {
  content: ""; position: absolute; left: 50%; bottom: -8%; width: 46%; height: 88%; transform: translateX(-50%);
  border-radius: 50% 50% 8% 8% / 34% 34% 8% 8%;
  background: radial-gradient(circle at 50% 22%, rgba(255, 244, 228, .55) 0 16%, transparent 17%), linear-gradient(180deg, rgba(255, 240, 220, .25), rgba(255, 240, 220, .05));
}
.wt-hero-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 70% 20%, rgba(255, 236, 205, .35), transparent 60%); }
.wt-hero-dress .wt-hero-art { background: linear-gradient(160deg, #6E2F3C, #210E14); }
.wt-hero-stage .wt-hero-art { background: radial-gradient(60% 80% at 50% 0%, #F2D8A8, #4A3720 55%, #120D08); }
.tone-0 { background: linear-gradient(160deg, #C9A88A, #6E5240); }
.tone-1 { background: linear-gradient(160deg, #8C5E4A, #3B2620); }
.tone-2 { background: linear-gradient(160deg, #B98D74, #5A3E31); }
.tone-3 { background: linear-gradient(160deg, #6D4B3D, #24170F); }
.wt-portrait { display: grid; place-items: center; aspect-ratio: 3 / 4; }
.wt-portrait span { font-family: var(--wt-display); font-size: 28px; color: rgba(255, 246, 232, .85); }

/* Sections (default layout = The Editorial) -------------------------------- */
.wt-hero { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; min-height: 460px; }
.wt-hero-art { min-height: 460px; }
.wt-hero-copy { padding: 64px 48px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.wt-count { position: absolute; left: 48px; bottom: 28px; display: flex; gap: 8px; }
.wt-count span { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 8px 6px; background: rgba(0, 0, 0, .35); color: #FFF7EA; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; border-radius: var(--wt-radius); }
.wt-count b { font-family: var(--wt-display); font-weight: 400; font-size: 22px; letter-spacing: 0; }
.wt-queen { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; padding: 80px 48px; border-bottom: 1px solid var(--wt-line); }
.wt-queen-art { aspect-ratio: 4 / 5; }
.wt-queen-copy { display: flex; flex-direction: column; gap: 10px; }
.wt-quote { display: block; margin-top: 14px; font-family: var(--wt-display); font-style: italic; font-size: 22px; line-height: 1.4; max-width: 30ch; }
.wt-delegates, .wt-news { padding: 72px 48px; }
.wt-sec-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 30px; }
.wt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
.wt-card { display: flex; flex-direction: column; gap: 6px; }
.wt-card .wt-portrait { border-radius: var(--wt-radius); margin-bottom: 6px; }
.wt-card-name { font-family: var(--wt-display); font-size: 18px; }
.wt-news { background: var(--wt-surface); }
.wt-news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.wt-news-item { display: flex; flex-direction: column; gap: 8px; }
.wt-news-art { aspect-ratio: 16 / 10; border-radius: var(--wt-radius); }
.wt-news-title { font-family: var(--wt-display); font-size: 18px; line-height: 1.3; }
.wt-sponsors { padding: 48px; text-align: center; border-top: 1px solid var(--wt-line); }
.wt-logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 40px; margin-top: 18px; font-family: var(--wt-display); font-size: 20px; color: var(--wt-muted); letter-spacing: .04em; }
.wt-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 26px 48px; border-top: 1px solid var(--wt-line); font-size: 12px; color: var(--wt-muted); }
.wt-foot-note { opacity: .7; }

/* The Editorial: centered masthead, italic captions ---------------------------- */
.wt-editorial .wt-nav { flex-wrap: wrap; justify-content: center; gap: 12px 28px; padding: 26px 48px 18px; }
.wt-editorial .wt-logo { width: 100%; justify-content: center; }
.wt-editorial .wt-logo-text { font-size: 30px; letter-spacing: .14em; text-transform: uppercase; }
.wt-editorial .wt-links { margin-left: 0; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
.wt-editorial .wt-nav .wt-btn-sm { display: none; }
.wt-editorial .wt-hero-copy { border-left: 1px solid var(--wt-line); }
.wt-editorial .wt-h1 { font-style: italic; }
.wt-editorial .wt-card-name, .wt-editorial .wt-news-title { font-style: italic; }
.wt-editorial .wt-btn { background: transparent; color: var(--wt-text); box-shadow: inset 0 0 0 1px var(--wt-text); }
.wt-editorial .wt-btn-ghost { box-shadow: none; text-decoration: underline; text-underline-offset: 4px; padding: 0 6px; }
.wt-editorial .wt-count { left: 24px; }

/* The Modern: full-bleed hero, bold sans, hard edges --------------------------- */
.wt-modern { --wt-radius: 0px; }
.wt-modern .wt-logo-text { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; text-transform: uppercase; }
.wt-modern .wt-logo-mark { border-radius: 0; transform: rotate(45deg); width: 18px; height: 18px; }
.wt-modern .wt-logo-mark::after { inset: 4px; border-radius: 0; }
.wt-modern .wt-links { color: var(--wt-text); font-weight: 600; }
.wt-modern .wt-hero { grid-template-columns: 1fr; min-height: 520px; }
.wt-modern .wt-hero-art { position: absolute; inset: 0; min-height: 0; }
.wt-modern .wt-hero-art::before { left: 72%; }
.wt-modern .wt-hero-copy { position: relative; justify-content: flex-end; padding: 56px 48px; color: #FFFFFF; }
.wt-modern .wt-h1 { font-weight: 800; font-size: 92px; line-height: .9; letter-spacing: -0.05em; text-transform: uppercase; }
.wt-modern .wt-lead { color: rgba(255, 255, 255, .78); }
.wt-modern .wt-hero .wt-kicker { color: #FFFFFF; }
.wt-modern .wt-btn-ghost { color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.wt-modern .wt-count { left: auto; right: 48px; bottom: 56px; }
.wt-modern .wt-count span { background: var(--wt-accent); color: var(--wt-on-accent); }
.wt-modern .wt-h2 { font-weight: 800; font-size: 40px; letter-spacing: -0.03em; text-transform: uppercase; }
.wt-modern .wt-queen { grid-template-columns: 1.2fr 1fr; background: var(--wt-surface); }
.wt-modern .wt-queen-art { order: 2; aspect-ratio: 1 / 1; }
.wt-modern .wt-quote { font-family: var(--wt-body); font-style: normal; font-weight: 700; font-size: 24px; border-left: 4px solid var(--wt-accent); padding-left: 16px; }
.wt-modern .wt-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.wt-modern .wt-card { gap: 2px; padding: 0 0 14px; }
.wt-modern .wt-card .wt-portrait { aspect-ratio: 3 / 4.4; margin-bottom: 10px; }
.wt-modern .wt-card-name, .wt-modern .wt-news-title { font-family: var(--wt-body); font-weight: 700; font-size: 14px; padding: 0 10px; }
.wt-modern .wt-card-sub { padding: 0 10px; }
.wt-modern .wt-news { background: var(--wt-bg); }
.wt-modern .wt-logos { font-family: var(--wt-body); font-weight: 800; text-transform: uppercase; font-size: 16px; }

/* The Crown: cinematic, centered, gold detail --------------------------------- */
.wt-crown { --wt-radius: 2px; }
.wt-crown .wt-nav { border-bottom: 1px solid color-mix(in srgb, var(--wt-accent) 35%, transparent); }
.wt-crown .wt-logo-text { letter-spacing: .1em; text-transform: uppercase; font-size: 18px; }
.wt-crown .wt-links { text-transform: uppercase; letter-spacing: .16em; font-size: 11px; }
.wt-crown .wt-hero { grid-template-columns: 1fr; min-height: 560px; text-align: center; }
.wt-crown .wt-hero-art { position: absolute; inset: 0; min-height: 0; }
.wt-crown .wt-hero-art::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .65)), radial-gradient(50% 50% at 50% 10%, rgba(255, 226, 180, .45), transparent 70%); }
.wt-crown .wt-hero-copy { position: relative; align-items: center; justify-content: flex-end; padding: 64px 48px 140px; color: #FFF7EA; }
.wt-crown .wt-h1 { font-size: 76px; }
.wt-crown .wt-lead { color: rgba(255, 247, 234, .8); margin: 0 auto; }
.wt-crown .wt-kicker { color: #E6CFA6; }
.wt-crown .wt-kicker::before, .wt-crown .wt-kicker::after { content: "—"; margin: 0 10px; opacity: .6; }
.wt-crown .wt-actions { justify-content: center; }
.wt-crown .wt-btn-ghost { color: #FFF7EA; box-shadow: inset 0 0 0 1px rgba(230, 207, 166, .7); }
.wt-crown .wt-count { left: 50%; transform: translateX(-50%); bottom: 40px; }
.wt-crown .wt-count span { background: rgba(7, 8, 12, .55); box-shadow: inset 0 0 0 1px rgba(230, 207, 166, .45); min-width: 70px; }
.wt-crown .wt-count b { color: #E6CFA6; font-size: 26px; }
.wt-crown .wt-queen { grid-template-columns: 1fr 1fr; background: var(--wt-surface); }
.wt-crown .wt-queen-art { box-shadow: 0 0 0 1px var(--wt-accent), 0 0 0 10px var(--wt-surface), 0 0 0 11px color-mix(in srgb, var(--wt-accent) 50%, transparent); }
.wt-crown .wt-sec-head { align-items: center; text-align: center; }
.wt-crown .wt-sec-head::after { content: ""; width: 60px; height: 1px; background: var(--wt-accent); margin-top: 8px; }
.wt-crown .wt-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.wt-crown .wt-card { text-align: center; }
.wt-crown .wt-card .wt-portrait { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wt-accent) 50%, transparent); }
.wt-crown .wt-card-name { font-size: 16px; }
.wt-crown .wt-sponsors { background: var(--wt-surface); }
.wt-crown .wt-logos { color: var(--wt-text); font-size: 22px; }

/* Narrow frames: the mobile layout -------------------------------------------- */
@container (max-width: 560px) {
  .wt-nav { padding: 16px 18px; gap: 12px; }
  .wt-links, .wt-nav .wt-btn-sm { display: none; }
  .wt-burger { display: flex; }
  .wt-editorial .wt-logo { width: auto; justify-content: flex-start; }
  .wt-editorial .wt-logo-text { font-size: 18px; letter-spacing: .1em; }
  .wt-editorial .wt-nav { flex-wrap: nowrap; justify-content: flex-start; padding: 16px 18px; }
  .wt-hero { grid-template-columns: 1fr; min-height: 0; }
  .wt-hero-art { min-height: 300px; }
  .wt-hero-copy { padding: 28px 18px 36px; }
  .wt-editorial .wt-hero-copy { border-left: 0; }
  .wt-h1 { font-size: 40px; }
  .wt-modern .wt-hero, .wt-crown .wt-hero { min-height: 560px; align-content: end; }
  .wt-modern .wt-hero-copy { padding: 28px 18px; }
  .wt-modern .wt-h1 { font-size: 54px; }
  .wt-crown .wt-hero-copy { padding: 28px 18px 24px; }
  .wt-crown .wt-h1 { font-size: 46px; }
  .wt-count, .wt-modern .wt-count, .wt-crown .wt-count, .wt-editorial .wt-count { position: relative; left: auto; right: auto; top: auto; bottom: auto; transform: none; padding: 0 18px 28px; }
  .wt-crown .wt-count { justify-content: center; }
  .wt-count span { min-width: 52px; }
  .wt-h2 { font-size: 28px; }
  .wt-modern .wt-h2 { font-size: 30px; }
  .wt-queen, .wt-modern .wt-queen, .wt-crown .wt-queen { grid-template-columns: 1fr; gap: 24px; padding: 48px 18px; }
  .wt-modern .wt-queen-art { order: 0; }
  .wt-quote { font-size: 18px; }
  .wt-delegates, .wt-news { padding: 48px 18px; }
  .wt-grid, .wt-modern .wt-grid, .wt-crown .wt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .wt-news-list { grid-template-columns: 1fr; }
  .wt-sponsors { padding: 36px 18px; }
  .wt-logos { gap: 10px 22px; font-size: 16px; }
  .wt-foot { padding: 20px 18px; flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------------------------
   Preview frames: browser window, phone and scaled thumbnails
   --------------------------------------------------------------------- */
.wt-browser { border-radius: 16px; overflow: hidden; background: #FFFFFF; box-shadow: 0 2px 6px rgba(41, 33, 22, .08), 0 40px 80px -40px rgba(41, 33, 22, .5); border: 1px solid rgba(11, 11, 12, .08); }
.wt-browser-bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: #F1ECE3; border-bottom: 1px solid #E4DCCE; }
.wt-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D6CCBC; }
.wt-browser-url { flex: 1; max-width: 360px; margin: 0 auto; height: 24px; border-radius: 8px; background: #FFFFFF; font-size: 11px; color: #6E6862; display: grid; place-items: center; }
.wt-browser-body { height: 620px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.wt-phone { width: 390px; max-width: 100%; margin: 0 auto; padding: 12px; border-radius: 48px; background: #0B0B0C; box-shadow: 0 40px 80px -40px rgba(41, 33, 22, .7); }
.wt-phone-body { height: 700px; border-radius: 37px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.wt-thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 11; border-radius: 14px; background: #EEE7DB; }
.wt-thumb-inner { position: absolute; top: 0; left: 0; width: 1280px; transform-origin: top left; transform: scale(var(--wt-scale, .26)); pointer-events: none; }
@container (max-width: 560px) {
  .wt-photo-tag { left: auto; right: 12px; top: 12px; bottom: auto; }
}
