/* Outdoor Essence layer over the template stylesheet. Loaded after brand.css. */

/* Type: General Sans only. 600 headings, 400 body, 600 labels. No negative tracking, no uppercase labels. */
body { letter-spacing: 0; }
h1, h2, h3, .statement-line, .gradient-sample, .pair-head, .tester-out, .post-head, .big, .swatch-name,
.s-display, .s-h1, .s-h2, .s-h3, .ratio { letter-spacing: 0; }
.toc a, .side-back, .menu { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; }
.toc a.on { font-weight: 600; }
.field-label, figcaption, .play-cap, .scale-spec, .swatch-use, .facts, .note, .hero-note, .hero-foot p, .seg button, .seg-solo,
.text-btn, .switch, .end, .checks, .verdict, .break-status, .file > span:not(.file-art), .sizes p, .s-small,
.swatch-rgb, .swatch-hex, .icon-name, .side-download-text > span { font-family: var(--sans); letter-spacing: 0; }
strong { font-weight: 600; }

/* No heading gradient: solid text. */
.grad, :root[data-theme="light"] :is(.hero, .statement, .tester-stage, .gradient-demo, .post) .grad { background: none; color: var(--white); -webkit-background-clip: border-box; background-clip: border-box; }

/* Corners stay nearly square. */
.card, .play-stage, .pair-stage, .post-stage, .play-panel, .break-stage, .break-panel, .stage-sm, .tester-stage, .tester-panel,
.swatch, .swatch-chip, .file, .side-download, .frames img, .gallery img, .statement, .hero, .icon-tile, .dodont > div,
.combo-sample, .text-in, .film, .avatars, .el, .figure-frame, .builder, .map-stage, .oe-card, .section-file { border-radius: var(--radius); }

/* Buttons: orange fill, dark text (on-orange). */
.btn-accent, .side-download:hover { background: var(--accent); color: var(--on-accent); }
.side-download:hover .side-download-text span { color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); color: var(--on-accent); }
::selection { background: var(--accent); color: var(--on-accent); }
.switch input:checked { background: var(--accent); }
.checks li.ok::before { background: #9AC3BB; }

/* The side logo and hero. */
.side-logo img { width: 168px; height: auto; }
:root[data-theme="light"] .side-logo { padding: 0; background: none; }
.logo-ink { display: none; }
:root[data-theme="light"] .side-logo .logo-white { display: none; }
:root[data-theme="light"] .side-logo .logo-ink { display: block; }

.oe-hero { position: relative; margin-top: 40px; border-radius: var(--radius); overflow: hidden; background: #111110; aspect-ratio: 2000 / 760; min-height: 320px; }
.oe-hero picture, .oe-hero > img.town { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; }
.oe-hero-head { position: absolute; left: 28px; top: 28px; right: 28px; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.oe-hero-head img { width: min(46vw, 380px); height: auto; }
.oe-hero-head p { color: #F3F2EE; font-size: 15px; font-weight: 500; }
.oe-hero .town { transition: filter .4s; }
.oe-hero[data-hero="clear"] { background: #FFFFFF; }
.oe-hero[data-hero="clear"] .oe-hero-head p { color: #181816; }
.oe-hero-controls { position: absolute; right: 24px; bottom: 18px; z-index: 2; }
.oe-hero-controls .seg button { color: #8F8D86; }
.oe-hero-controls .seg button[aria-pressed="true"] { color: #F3F2EE; }
.oe-hero[data-hero="clear"] .oe-hero-controls .seg button { color: #6B6A64; }
.oe-hero[data-hero="clear"] .oe-hero-controls .seg button[aria-pressed="true"] { color: #181816; }

/* Statement on ink deep, no glow. */
.statement { background: #111110; }
.statement-line { color: #F3F2EE; }
.statement-sub { color: #B5B3AA; }

/* Logo playground: images instead of the template's drawn mark. */
.lockup-holder img { display: block; max-width: 100%; height: auto; }
.lockup-holder.clear { outline: 1px dashed var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.logo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.logo-tile { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.logo-tile .tile-art { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 18%; border-radius: var(--radius); }
.logo-tile .tile-art img { max-height: 100%; width: auto; max-width: 100%; }
.logo-tile.dark .tile-art { background: #181816; }
.logo-tile.light .tile-art { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--hair); }
.logo-tile a { color: var(--g40); font-size: 13px; text-decoration: none; }
.logo-tile a:hover { color: var(--accent); }
.logo-tile strong { font-size: 14px; }

/* Break the logo (image version). */
.break-logo { display: inline-flex; align-items: center; gap: 3%; width: min(86%, 560px); transition: transform .35s var(--ease), filter .3s; }
.break-logo .bm { flex: 0 0 auto; width: 20%; }
.break-logo .bw { flex: 1 1 auto; min-width: 0; }
.break-logo img { display: block; width: 100%; height: auto; }
.break-logo.stretch { transform: scale(1.2, .6); }
.break-logo.tilt { transform: rotate(-9deg); }
.break-logo.stretch.tilt { transform: rotate(-9deg) scale(1.2, .6); }
.break-logo.recolour .bm img { filter: hue-rotate(150deg) saturate(1.6); }
.break-logo.recolour .bw img { filter: hue-rotate(150deg) saturate(1.6); }
.break-logo.house .bm img { filter: sepia(1) saturate(6) hue-rotate(-12deg) brightness(1.05); }
.break-logo.shadow { filter: drop-shadow(8px 10px 0 rgba(0, 0, 0, .95)); }
.break-logo.swap .bm { order: 2; }
.break-stage { background: #181816; }
.break-stage.on-accent { background: var(--accent); }

/* Clear space demo. */
.clear-demo { display: inline-block; padding: var(--x); outline: 1px dashed var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); max-width: 100%; }
.clear-demo img { display: block; width: 100%; max-width: 420px; height: auto; }
.sizes img { width: auto; }

/* Avatars: round previews like the platforms show them. */
.avatars { background: #111110; }
.avatars img { border-radius: 50%; image-rendering: auto; }
.avatars figure { text-align: center; }

/* Swatches: three groups. */
.swatches.support { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.swatches.support .swatch-chip { height: 88px; }

/* Type samples. */
.face-aa { font-family: var(--sans); }
.s-display { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.06; }
.s-h1 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; }
.s-h2 { font-size: 24px; line-height: 1.2; }
.s-h3 { font-size: 17px; line-height: 1.35; }
.s-intro { font-size: 18px; font-weight: 400; line-height: 1.6; }
.s-body { font-size: 16px; line-height: 1.625; }
.s-small { font-size: 14px; line-height: 1.5; }
.s-label { font-size: 15px; font-weight: 600; line-height: 1.2; font-family: var(--sans); }
.s-stat { font-size: 20px; font-weight: 600; }

/* Approved lines. */
.lines { display: grid; gap: 10px; }
.lines li { padding: 18px 20px; background: var(--panel); border-radius: var(--radius); color: var(--white); font-size: 20px; font-weight: 500; line-height: 1.35; }

/* Illustration, builder and map. */
.figure-frame { overflow: hidden; background: #24241F; }
.figure-frame img { width: 100%; height: auto; }
.illus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.illus figure { min-width: 0; }
.wide-frame { overflow: hidden; border-radius: var(--radius); background: #111110; }
.wide-frame img { width: 100%; height: auto; }

.builder { position: relative; overflow: hidden; background: #111110; height: min(78vh, 760px); min-height: 520px; box-shadow: inset 0 0 0 1px var(--hair); }
.builder iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.builder-cover { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 16px; padding: 24px; text-align: center; background: #111110; }
.builder-cover img { width: min(80%, 520px); height: auto; }
.builder-cover p { color: #B5B3AA; font-size: 15px; max-width: 420px; }
.builder-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 14px; }
.btn-accent { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 20px; font-size: 15px; font-weight: 600; text-decoration: none; border-radius: var(--radius); transition: background-color .2s, transform .25s var(--ease); }
.btn-accent [data-icon] { width: 18px; height: 18px; }
.steps-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.steps-list li { padding: 20px; background: var(--panel); border-radius: var(--radius); }
.steps-list b { display: block; color: var(--white); font-weight: 600; margin-bottom: 4px; }

.map-stage { position: relative; overflow: hidden; background: #111110; cursor: zoom-in; touch-action: manipulation; }
.map-stage img { width: 100%; height: auto; transition: transform .45s var(--ease); transform-origin: var(--mx, 50%) var(--my, 50%); }
.map-stage.zoomed { cursor: zoom-out; }
.map-stage.zoomed img { transform: scale(2.4); }
.map-hint { position: absolute; right: 16px; top: 14px; padding: 6px 10px; border-radius: var(--radius); background: rgba(17, 17, 16, .82); color: #B5B3AA; font-size: 13px; pointer-events: none; }
.places { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 20px; }
.places li { color: var(--white); font-size: 16px; }

/* Imagery. */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figure:nth-child(2) img { object-position: 50% 70%; }
.portrait img { border-radius: var(--radius); }

/* Social. */
.profile-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px; padding: 32px; background: #111110; border-radius: var(--radius); }
.profile-row figure { text-align: center; }
.profile-row img { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto; }
.covers { display: grid; gap: 16px; }
.covers figure img { width: 100%; height: auto; border-radius: var(--radius); }
.mock-grid { display: grid; grid-template-columns: 1.6fr .6fr; gap: 12px; align-items: start; }
.mock-grid img { width: 100%; height: auto; border-radius: var(--radius); }

/* Post maker. */
.post-maker { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; }
.post-canvas-wrap { display: grid; place-items: center; min-height: 420px; padding: 24px; background: var(--panel); border-radius: var(--radius); }
.post-canvas-wrap canvas { display: block; max-width: 100%; max-height: 640px; width: auto; height: auto; box-shadow: 0 0 0 1px var(--hair); }
.post-panel { display: flex; flex-direction: column; gap: 18px; padding: 24px; background: var(--panel); border-radius: var(--radius); }
.text-in { font-family: var(--sans); font-size: 15px; border: 1px solid var(--g60); }
textarea.text-in { resize: vertical; min-height: 84px; }

/* Applications. */
.oe-card { overflow: hidden; }
.card-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card-pair figure { min-width: 0; }
.card-pair img { width: 100%; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px var(--hair); }
.card-flip { perspective: 1600px; max-width: 620px; margin: 0 auto; cursor: pointer; }
.card-flip-inner { position: relative; aspect-ratio: 1050 / 642; transition: transform .8s var(--ease); transform-style: preserve-3d; }
.card-flip.flipped .card-flip-inner { transform: rotateY(180deg); }
.card-flip img { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 4px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.card-flip img.back { transform: rotateY(180deg); }
.card-stage { padding: 56px 24px; background: #111110; border-radius: var(--radius); }
.card-stage .note { text-align: center; }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.specs div { padding: 18px; background: var(--panel); border-radius: var(--radius); }
.specs dt { color: var(--g50); font-size: 13px; }
.specs dd { color: var(--white); font-size: 16px; font-weight: 600; }

/* Icons: Phosphor regular, filled paths on a 256 grid. */
.icon-tile { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.icon-tile svg { width: 24px; height: 24px; }
.icon-cell:hover .icon-tile { background: var(--accent); color: var(--on-accent); }
.icons.site .icon-tile { background: var(--panel); color: var(--white); }

/* Downloads. */
.file-art img { max-width: 70%; max-height: 110px; width: auto; height: auto; }
.file-art.photo { padding: 0; }
.file-art.photo img { max-width: 100%; max-height: none; width: 100%; height: 100%; object-fit: cover; }
.file-art.light { background: #FFFFFF; }

@media (max-width: 1100px) {
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .post-maker, .card-pair, .mock-grid, .illus { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-list { grid-template-columns: 1fr; }
  .swatches.support { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builder { height: 78vh; min-height: 480px; }
}
@media (max-width: 520px) {
  .oe-hero { aspect-ratio: auto; min-height: 340px; }
  .oe-hero-head img { width: 72vw; }
  .gallery { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: 1fr 1fr; }
  .profile-row { justify-content: center; gap: 20px; padding: 24px 16px; }
  .profile-row img { width: 88px; height: 88px; }
}

/* Every Version: wide lockups need less padding. */
.logo-tile.wide .tile-art { padding: 10%; }
.logo-tile.dark .tile-art { background: #111110; }

.tester-out, .pair-head { color: var(--white); }
.tester-stage { background: #111110; }

.btn-accent, .btn-accent:hover { box-shadow: none; }
.section-file:hover, .section-file:hover .section-file-size { background: var(--accent); color: var(--on-accent); }
.combo { border-radius: var(--radius); }

/* Card flip: the button must take the stage width. */
.card-flip { display: block; width: 100%; padding: 0; background: none; border: 0; }
.card-flip-inner { display: block; width: 100%; }
@media (max-width: 520px) {
  .oe-hero { min-height: 260px; aspect-ratio: 4 / 3; }
}

/* Light mode: link hover stays readable. */
:root[data-theme="light"] a:hover { color: #181816; }
/* Maps: light version stage and the builder button row. */
.map-stage.light { background: #ECEBE5; }
.builder-actions .btn-accent { min-height: 52px; padding: 10px 24px; font-size: 16px; }
.icon-groups { display: grid; gap: 36px; }
.icon-group h4 { margin-bottom: 16px; }

/* Logo in motion: raster from a ~370 px source, so never shown wider. */
.motion figure { display: grid; grid-template-rows: 1fr auto; gap: 12px; margin: 0; }
.motion-stage { display: grid; place-items: center; min-height: 300px; padding: 28px; background: #111110; border-radius: var(--radius); }
.motion-stage.light { background: #F9F6FA; }
.motion-stage video, .motion-stage img { display: block; width: 100%; max-width: 370px; height: auto; }
.motion-stage img { max-width: 318px; }
.motion figcaption { font-size: 14px; color: var(--g50); }
.motion-files { display: grid; gap: 8px; margin-top: 24px; font-size: 15px; color: var(--g50); }
.motion-files strong { margin-right: 8px; color: var(--white); font-weight: 500; }
.motion + .motion-files + .section-files { margin-top: 24px; }
