/* EŞİK showcase: the entry page. Tokens, fonts and buttons follow ../css/base.css (DESIGN.md v2, direction b "Kesit").
   The fonts are copied into ./fonts so the page works from file:// in every browser. */
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --paper: #FAFAFA; --ink: #1D1F22; --ink-2: #50555C; --line: #7A8088; --tone: #EFF0F0; --tone-2: #E2E4E4;
  --red: #C42B1C; --sill: #F2B705; --on-ink: #FAFAFA; --model: #E7E8E8;
  --font: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --tap: 44px; --r-ctl: 6px; --r-chip: 2px;
  --pad: clamp(16px, 3.4vw, 48px);
  --gap: clamp(56px, 8vw, 112px);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.4 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, figure { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--paper); padding: 10px 14px; border: 1.5px solid var(--ink); text-decoration: none; font-weight: 600; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; box-shadow: 0 0 0 5px var(--sill); }

/* ---------- the stamp and the chip (as on the other pages) ---------- */
.stamp { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12.5px; font-stretch: 88%; }
.stamp em { font-style: normal; }
.stamp > span { flex: none; border: 1.5px solid var(--ink); padding: 1px 6px; outline: 1px solid var(--ink); outline-offset: 2px; margin: 3px; }
.chip {
  display: inline-block; border: 1.5px solid var(--ink); border-radius: var(--r-chip); padding: 2px 7px;
  font-weight: 650; font-stretch: 88%; font-size: 14px; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.btn {
  min-width: var(--tap); min-height: var(--tap); padding: 0 18px; display: inline-grid; place-items: center; grid-auto-flow: column; gap: 8px;
  border: 1.5px solid var(--ink); border-radius: var(--r-ctl); background: var(--paper); color: var(--ink); text-decoration: none;
  font: 650 16px/1 var(--font); font-stretch: 88%; cursor: pointer; transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.btn:hover { background: var(--tone); }
.btn.main { background: var(--ink); color: var(--on-ink); }
.btn.main:hover { background: #33373C; }
.btn:disabled { opacity: .45; cursor: default; }

/* ---------- top ---------- */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--pad) 0; max-width: 1536px; margin: 0 auto; }
.brand { font-weight: 760; font-stretch: 76%; font-size: 24px; letter-spacing: .01em; line-height: 1; }

/* ---------- hero: the 3D story itself ---------- */
.hero { max-width: 1536px; margin: 0 auto; padding: clamp(20px, 3vw, 40px) var(--pad) 0; }
.hero-head { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 16px 40px; align-items: end; margin-bottom: clamp(16px, 2.2vw, 28px); }
h1 { font-weight: 720; font-stretch: 72%; font-size: clamp(38px, 5.4vw, 80px); line-height: .94; letter-spacing: -.012em; text-wrap: balance; max-width: 13em; }
.sub { font-size: 19px; line-height: 1.35; color: var(--ink-2); max-width: 22em; padding-bottom: .3em; text-wrap: pretty; }

.frame-wrap { position: relative; }
.frame { position: relative; overflow: hidden; background: var(--model); border: 1.5px solid var(--ink); height: clamp(320px, calc(100svh - 360px), 700px); }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.frame-live { position: absolute; inset: 0; opacity: 0; transition: opacity 600ms var(--ease); }
.frame-live.is-on { opacity: 1; }
.frame-live iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: var(--model); }
.frame-open { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.frame-open:focus-visible { outline-offset: 3px; box-shadow: 0 0 0 8px var(--sill); }

/* title block under the sheet: the place, what it is, the way on */
.tb { display: grid; grid-template-columns: auto 1fr auto; align-items: stretch; border: 1.5px solid var(--ink); border-top: 0; font-stretch: 88%; }
.tb > span { display: flex; align-items: center; min-height: 46px; padding: 0 14px; }
.tb-t { font-weight: 700; font-size: 16px; border-right: 1px solid var(--line); }
.tb-k { font-size: 14px; color: var(--ink-2); }
.tb-go { font-weight: 650; font-size: 15px; gap: 8px; border-left: 1px solid var(--line); }
.tb-go::before { content: ""; width: 0; height: 0; border-left: 9px solid currentColor; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
.frame-wrap:hover .tb-go, .frame-wrap:focus-within .tb-go { background: var(--tone); }

/* ---------- ways in: four sheets of one set ---------- */
.ways { max-width: 1536px; margin: var(--gap) auto 0; padding: 0 var(--pad); }
.sheets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 41px; border-top: 1.5px solid var(--ink); }
.sheet { position: relative; padding: 20px 0 22px; display: flex; flex-direction: column; }
.sheet + .sheet::before { content: ""; position: absolute; left: -21px; top: 0; bottom: 0; border-left: 1px solid var(--line); }
.sheet-a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; height: 100%; outline-offset: 6px; }
.sheet-a:focus-visible { box-shadow: 0 0 0 9px var(--sill); }
.sheet-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--model); margin-bottom: 8px; }
.sheet-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms var(--ease); }
.sheet-img-2d { background: var(--paper); box-shadow: inset 0 0 0 1px var(--tone-2); }
.sheet-img-2d img { object-position: 0 0; }
/* the sill: a door into the piece shows its threshold on hover and focus */
.sheet-img::after { content: ""; position: absolute; left: 14px; bottom: 0; width: 34px; height: 6px; background: var(--sill); box-shadow: 0 0 0 1.5px var(--ink); opacity: 0; transform: translateY(6px); transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.sheet-a:hover .sheet-img img, .sheet-a:focus-visible .sheet-img img { transform: scale(1.025); }
.sheet-a:hover .sheet-img::after, .sheet-a:focus-visible .sheet-img::after { opacity: 1; transform: none; }
.sheet-t { font-weight: 720; font-stretch: 76%; font-size: 26px; line-height: 1.02; }
.sheet-d { font-size: 15px; line-height: 1.35; color: var(--ink-2); text-wrap: pretty; }
.sheet-a > .chip { align-self: flex-start; margin-top: auto; }
.sheet-a .sheet-d { margin-bottom: 6px; }
.full { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.full li { border-bottom: 1px solid var(--line); }
.full a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; text-decoration: none; font-weight: 600; font-size: 16px; font-stretch: 92%; padding-right: 2px; }
.full a:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.sheet-full .sheet-img { margin-bottom: 16px; }

/* ---------- the band: real numbers of the day ---------- */
.band {
  position: relative; max-width: 1536px; margin: var(--gap) auto 0; padding: 22px var(--pad); display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto; gap: 12px 40px; align-items: center;
}
.band::before, .band::after { content: ""; position: absolute; left: var(--pad); right: var(--pad); }
.band::before { top: 0; border-top: 1.5px solid var(--ink); }
.band::after { bottom: 0; border-top: 1px solid var(--line); }
.b-n { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 2px 10px; }
.b-n b { white-space: nowrap; font-weight: 620; font-stretch: 72%; font-size: clamp(40px, 4vw, 56px); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.b-n > span:last-child span { display: block; }
.b-n > span:last-child { grid-column: 1 / -1; font-size: 14px; line-height: 1.3; color: var(--ink-2); font-stretch: 92%; max-width: 15em; }
.b-met { grid-template-columns: auto auto; }
.tk { display: inline-flex; gap: 4px; align-self: center; height: 22px; align-items: stretch; }
.tk i { display: block; width: 2px; background: var(--ink); }
.tk i.is-no { background: none; box-shadow: inset 0 0 0 1px var(--red); }
.b-day { min-width: 0; }
.hairs { display: block; width: 100%; height: 48px; }
.hairs .a { fill: var(--ink); }
.hairs .d { fill: var(--red); }
.hairs .r { fill: var(--ink-2); }
.hairs .n { fill: var(--line); }
.b-key { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; font-size: 13px; font-stretch: 92%; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.b-key span { display: inline-flex; align-items: center; gap: 6px; }
.b-key b { color: var(--ink); font-weight: 650; }
.b-key .no b { color: var(--red); }
.b-key i { display: inline-block; width: 3px; height: 12px; background: var(--ink); }
.b-key .no i { background: var(--red); }
.b-key .rd i { height: 6px; background: var(--ink-2); }
.b-key .nr i { height: 3px; background: var(--line); }

/* ---------- try a request ---------- */
.try { max-width: 1536px; margin: var(--gap) auto 0; padding: 0 var(--pad); }
.try-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px 40px; align-items: end; padding-bottom: 20px; border-bottom: 1.5px solid var(--ink); }
.try h2 { font-weight: 720; font-stretch: 72%; font-size: clamp(34px, 3.6vw, 52px); line-height: 1; }
.try-sub { font-size: 17px; line-height: 1.35; color: var(--ink-2); max-width: 30em; text-wrap: pretty; }
.try-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 40px; }
.ask { padding: 28px 0 8px; display: grid; gap: 24px; align-content: start; }
.pick { border: 0; margin: 0; padding: 0; min-width: 0; }
.pick legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 650; font-stretch: 92%; color: var(--ink-2); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt span {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 14px;
  border: 1.5px solid var(--ink); border-radius: var(--r-ctl); background: var(--paper);
  font-weight: 620; font-stretch: 88%; font-size: 15px; line-height: 1.1;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}
.opt input:hover + span { background: var(--tone); }
.opt input:checked + span { background: var(--ink); color: var(--on-ink); }
.opt input:focus-visible + span { outline: 2px solid var(--ink); box-shadow: 0 0 0 5px var(--sill); }
.opt input:disabled { cursor: default; }
.opt input:disabled + span { border-style: dashed; border-color: var(--line); color: var(--ink-2); background: var(--paper); }
.opt svg { width: 12px; height: 18px; flex: none; fill: currentColor; }
.dash-key { margin-top: 10px; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.dash-key i { display: inline-block; width: 22px; border-top: 1.5px dashed var(--line); }
.ask-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ask-b { min-width: 120px; font-size: 17px; }
.mode { font-size: 13px; line-height: 1.35; color: var(--ink-2); max-width: 26em; }

.resp { display: grid; grid-template-columns: minmax(250px, 5fr) minmax(0, 6fr); gap: 0 32px; border-left: 1px solid var(--line); padding-left: 32px; min-height: 420px; }
.draw { padding: 20px 0 16px; min-width: 0; }
.trace { display: block; width: 100%; height: 380px; overflow: visible; }
.trace text { font-family: var(--font); fill: var(--ink); }
.trace .lv { font-size: 13.5px; font-weight: 640; font-stretch: 86%; }
.trace .lk { font-size: 12.5px; font-weight: 500; font-stretch: 86%; fill: var(--ink-2); }
.trace .datum { stroke: var(--line); stroke-width: .9px; stroke-dasharray: 14 3 2 3; fill: none; }
.trace .is-off .lv, .trace .is-off .lk { fill: var(--line); }
.trace .is-off .lv { fill: #8C9299; }
.trace .ground { stroke: var(--ink); stroke-width: 2.4px; }
.trace .earth { fill: url(#sc-ground); }
.trace .pt-ground { stroke: #8A9097; stroke-width: .8px; }
.trace .pt-dot { fill: #8A9097; }
.trace .wall { fill: var(--ink); }
.trace .sill { fill: var(--sill); stroke: var(--ink); stroke-width: 1.5px; }
.trace .is-deny .sill { stroke: var(--red); }
.trace .plumb { stroke: var(--ink); stroke-width: 1.1px; stroke-dasharray: 3 3; fill: none; opacity: .55; }
.trace .resp-line { stroke: var(--ink); stroke-width: 2px; fill: none; }
.trace .is-deny .resp-line { stroke: var(--red); }
.trace .node { fill: var(--paper); stroke: var(--ink); stroke-width: 1.3px; }
.trace .node.is-decided { fill: var(--ink); }
.trace .dot { fill: var(--ink); }
.trace .bob { fill: var(--ink); }
.trace .fig { fill: var(--ink); }
.trace .door-l { font-size: 12.5px; font-weight: 560; font-stretch: 86%; fill: var(--ink); }

.out { padding: 26px 0 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; align-self: start; }
.o-who { font-size: 14px; color: var(--ink-2); font-stretch: 92%; min-height: 1.3em; }
.o-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 34px; }
.o-word { font-size: 34px; line-height: 1; font-weight: 720; font-stretch: 76%; }
.o-reason { font-size: 19px; line-height: 1.35; text-wrap: pretty; max-width: 24em; }
.o-meta { font-size: 14px; color: var(--ink-2); font-stretch: 92%; line-height: 1.4; }
.o-meta b { color: var(--ink); font-weight: 650; }
.o-says { font-size: 15px; color: var(--ink-2); line-height: 1.4; text-wrap: pretty; max-width: 30em; }
.o-says:empty, .o-meta:empty, .o-note:empty { display: none; }
.o-note { font-size: 13px; color: var(--ink-2); font-stretch: 92%; border-top: 1px solid var(--tone-2); padding-top: 10px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.out.is-deny .o-word, .out.is-deny .chip { color: var(--red); border-color: var(--red); }
.out.is-none .o-word { color: var(--ink-2); }
.out.is-wait .o-word, .out.is-wait .o-reason { color: var(--ink-2); }
.out .o-head, .out .o-reason, .out .o-meta, .out .o-says { transition: opacity 200ms var(--ease); }
.out.is-hide .o-head, .out.is-hide .o-reason, .out.is-hide .o-meta, .out.is-hide .o-says { opacity: 0; }

/* ---------- footer ---------- */
.foot { max-width: 1536px; margin: var(--gap) auto 0; padding: 18px var(--pad) calc(28px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; position: relative; }
.foot::before { content: ""; position: absolute; left: var(--pad); right: var(--pad); top: 0; border-top: 1.5px solid var(--ink); }
.foot .stamp em { color: var(--ink); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 10px; font-size: 14px; font-weight: 600; font-stretch: 92%; text-underline-offset: 3px; }
.foot-nav a:last-child { padding-right: 0; }
.nojs { max-width: 1536px; margin: 16px auto; padding: 0 var(--pad); font-size: 15px; color: var(--ink-2); }

/* ---------- tablet: 640 to 1099 ---------- */
@media (max-width: 1099px) {
  .hero-head { grid-template-columns: 1fr; }
  h1 { font-size: clamp(38px, 6.6vw, 64px); }
  .frame { height: auto; aspect-ratio: 16 / 10; }
  .sheets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet + .sheet::before { display: none; }
  .sheet:nth-child(2n)::before { display: block; }
  .sheet:nth-child(n+3) { border-top: 1px solid var(--line); }
  .band { grid-template-columns: repeat(3, auto); justify-content: space-between; }
  .b-day { grid-column: 1 / -1; grid-row: 2; }
  .try-head { grid-template-columns: 1fr; }
  .try-grid { grid-template-columns: 1fr; }
  .ask { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .resp { border-left: 0; padding-left: 0; }
}

/* ---------- phone: under 640 ---------- */
@media (max-width: 639px) {
  :root { --gap: 56px; }
  .top { padding-top: 12px; }
  .brand { font-size: 21px; }
  .stamp { font-size: 11.5px; }
  .hero { padding-top: 18px; }
  h1 { font-size: clamp(34px, 10vw, 44px); line-height: .96; }
  .sub { font-size: 16px; }
  .frame { aspect-ratio: 4 / 5; max-height: calc(100svh - 230px); min-height: 300px; }
  .tb { grid-template-columns: 1fr auto; }
  .tb-k { display: none !important; }
  .tb > span { padding: 0 12px; }
  .sheets { grid-template-columns: 1fr; border-top: 0; }
  .sheet { padding: 16px 0; border-top: 1px solid var(--line); }
  .sheet:nth-child(2n)::before { display: none; }
  .sheet:first-child { border-top: 1.5px solid var(--ink); }
  .sheet-a { display: grid; grid-template-columns: 132px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 14px; row-gap: 4px; }
  .sheet-a .sheet-img { grid-row: 1 / span 3; margin: 0; align-self: start; }
  .sheet-a .sheet-d { margin: 0; font-size: 14px; }
  .sheet-a > .chip { justify-self: start; margin-top: 2px; }
  .sheet-t { font-size: 22px; }
  .sheet-full { display: grid; grid-template-columns: 132px minmax(0, 1fr); column-gap: 14px; }
  .sheet-full .sheet-img { margin: 0; }
  .sheet-full .full { grid-column: 1 / -1; margin-top: 12px; }
  .band { grid-template-columns: 1fr 1fr; gap: 18px 16px; padding-top: 20px; padding-bottom: 20px; }
  .b-total { grid-column: 1 / -1; }
  .b-day { grid-column: 1 / -1; grid-row: 2; }
  .b-n b { font-size: 40px; }
  .hairs { height: 40px; }
  .try-sub { font-size: 16px; }
  .resp { grid-template-columns: 1fr; min-height: 0; }
  .draw { padding-bottom: 0; }
  .trace { height: 300px; }
  .out { padding-top: 8px; }
  .o-word { font-size: 30px; }
  .o-reason { font-size: 18px; }
  .foot { flex-direction: column; align-items: flex-start; }
  .foot-nav { margin-left: -10px; }
}
@media (max-width: 379px) {
  h1 { font-size: 32px; }
  .opt span { padding: 0 11px; font-size: 14px; }
  .sheet-a, .sheet-full { grid-template-columns: 104px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
@media print {
  .frame-live, .frame-open, .skip, .ask-row .btn { display: none; }
  .frame { height: auto; aspect-ratio: 16 / 10; }
}
