/* The ceramic face, horizon and twelve finishes are the assets shipped with Fokus. */
.home{background:#171619;color:#f2ede7;--line:#ffffff20;--max:1232px}
.home .nav{background:#171619;border:0}.home .nav>div{height:65px}.home .brand{font-size:22px}.home .nav nav a{color:#c1bcb7}.home [hidden]{display:none!important}
.download-box{width:284px;max-width:100%}.download-main{display:flex;align-items:center;justify-content:space-between;background:#eae2d7;color:#282426;text-decoration:none;font-size:15px;font-weight:620;padding:0 16px;height:45px;margin-top:7px;border-radius:8px;box-shadow:inset 0 1px #fff9}.download-main:hover{background:#fff4e6}.download-box small{display:block;color:#ada6a2;text-align:center;margin-top:10px;font-size:11.5px}.preview-jump{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:7px;padding:6px;text-decoration:none;font-size:12px;color:#c7beb8}
#setup-link { margin-left: 5px; text-underline-offset: 3px; }

/* The sky and foreground are the same two landscape layers used by the Mac app. */
.home .nav { background: #1c1a24; }
.exhibit-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #292539;
  border-bottom: 1px solid #62596e;
}
.sunset-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #292539 url('/assets/sky.webp') center / cover;
}
.sunset-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/ridges.webp') center bottom / 100% 80% no-repeat;
}
.sunset-scene .sun-disc {
  position: absolute;
  left: 73%;
  bottom: 35%;
  width: clamp(92px, 10vw, 170px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-linear-gradient(0deg, #71486716 0 .55px, transparent .55px 2px),
    linear-gradient(#fff2cf, #f6d1ac 55%, #d99b98);
  box-shadow: 0 0 30px 8px #efc19c24, 0 0 74px 30px #d79e9a24;
}
.hero-inner {
  max-width: var(--max);
  margin: auto;
  padding: clamp(58px, 7vw, 100px) 52px clamp(82px, 8vw, 126px);
}
.hero-title h1 {
  margin: 0;
  font: 590 clamp(54px, 5.6vw, 90px)/1.02 -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  letter-spacing: -.068em;
  color: #faf6fc;
}
.hero-title h1 em {
  display: block;
  font: italic 400 1.05em/1.06 Georgia, 'Times New Roman', serif;
  letter-spacing: -.066em;
  color: #fbe1c1;
}
.hero-title .pitch {
  max-width: 55ch;
  margin: 20px 0 24px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  color: #f0e9f3;
}
.exhibit-hero .download-box small { color: #f0e6ed; }
.exhibit-hero .preview-jump { color: #f4e9ef; bottom: 11px; }
@media (max-width: 780px) {
  .hero-inner { padding: 52px 24px 100px; }
  .hero-title h1 { font-size: clamp(46px, 6.8vw, 62px); }
  .sunset-scene .sun-disc { left: 76%; }
}
@media (max-width: 540px) {
  .hero-inner { padding: 35px 21px 130px; }
  .hero-title h1 { font-size: clamp(36px, 9.3vw, 49px); }
  .hero-title .pitch { font-size: 15px; max-width: 36ch; margin: 14px 0 20px; }
  .download-box { width: min(100%, 278px); }
  .sunset-scene::after { background-size: auto 42%; background-position: 63% bottom; }
  .sunset-scene .sun-disc { width: 68px; left: auto; right: 11%; bottom: 18%; }
}

.features {
  max-width: var(--max);
  margin: auto;
  padding-inline: clamp(20px, 4vw, 52px);
}
.feature-row {
  display: grid;
  grid-template-columns: minmax(215px, .84fr) minmax(0, 1.24fr);
  align-items: center;
  column-gap: clamp(38px, 7vw, 108px);
  padding-block: clamp(48px, 6vw, 86px);
  scroll-margin-top: 16px;
}
.feature-row + .feature-row { border-top: 1px solid #ffffff1b; }
.feature-reverse { grid-template-columns: minmax(0, 1.24fr) minmax(215px, .84fr); }
.feature-reverse .feature-copy { grid-column: 2; }
.feature-reverse .studio { grid-column: 1; grid-row: 1; }
.feature-copy h2 {
  max-width: 15ch;
  margin: 0 0 15px;
  font: 400 clamp(33px, 3.6vw, 55px)/1.04 Georgia, serif;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.feature-copy p {
  max-width: 38ch;
  margin: 0;
  color: #c7bfca;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.54;
}
.studio {
  min-width: 0;
  background: #211f25;
  border: 1px solid #ffffff23;
  border-radius: 12px;
  box-shadow: 0 12px 37px #08060d50;
  overflow: hidden;
}
.studio .bar { height: 34px; border-radius: 0; }
.studio .summary { padding: 18px 20px; }
.studio .summary:after { background-size: 100% 100%; }
.studio .bar small { color: #cbc1d0; }
.group-capture, .group-capture img { display: block; width: 100%; height: auto; }
.hours-pane { padding: 18px 20px; }
.schedule b, .schedule label { font-size: 13px; }
.days { display: flex; gap: 5px; margin: 10px 0 19px; }
.days button {
  flex: 1; max-width: 47px; min-height: 35px;
  border: 1px solid #504751; border-radius: 6px;
  background: #302d32; color: #cfc4d3; font-size: 13px;
}
.days button[aria-pressed=true] { color: #f0ddfa; background: #514357; border-color: #705a79; }
.times { display: flex; gap: 18px; }
.times label { display: grid; gap: 6px; color: #d4cdd8; }
.times input { color-scheme: dark; background: #211f23; border: 1px solid #504751; padding: 8px; border-radius: 5px; font: inherit; color: inherit; }
#save-hours { margin-top: 18px; border: 0; border-radius: 6px; background: #4c4052; color: #eee1f5; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; }
#hours-result { color: #d0c5d4; margin: 10px 0 0; font-size: 12px; line-height: 1.5; }
@media (max-width: 720px) {
  .feature-row, .feature-reverse { display: flex; flex-direction: column; align-items: stretch; gap: 22px; padding-block: 34px; }
  .feature-copy h2 { max-width: 21ch; margin-bottom: 10px; }
  .feature-copy p { max-width: 47ch; }
  .hours-pane { padding: 15px; }
  .home .nav>div { height: 53px; }
}

.apps-capture { margin: 0; padding: clamp(14px,3vw,32px); background: #1c1b22; }
.apps-capture img { display: block; width: 100%; height: auto; }
.opening-position {
  grid-area: board;
  display: grid;
  z-index: 1;
  grid-template: repeat(8, 1fr) / repeat(8, 1fr);
  aspect-ratio: 1;
  border-radius: 7px;
  overflow: hidden;
  background: conic-gradient(#b78f69 25%, #eed8b4 0 50%, #b78f69 0 75%, #eed8b4 0) 0 0 / 25% 25%;
}
.opening-position span { min-width: 0; min-height: 0; }
.opening-position img { display: block; width: 100%; height: 100%; }

.source-close { display: grid; justify-items: center; gap: 18px; padding-block: 38px; }
.source-close .download-main { width: min(100%, 284px); }
#sample .instruction { min-height: 2.9em; }
#sample .actions { display: flex; min-height: 36px; }
#hours-result { min-height: 3em; }

.deck-track {
  --text: #f3eee9;
  --subtext: #d0c5c6;
  --surface: #393237;
  --outline: #65565c;
  --gutter: #231f23;
  --board-size: min(43vw, 57svh, 530px);
  position: relative;
  padding-inline: clamp(14px, 5vw, 64px);
  background: #201d24;
  border-block: 1px solid #ffffff18;
  overflow-anchor: none;
}
.deck-track::after { content: ''; display: block; height: 134svh; }
.deck-pin {
  position: sticky;
  top: var(--pin-top, 16px);
  width: min(100%, calc(var(--board-size) * 2 + 60px));
  margin: auto;
  padding-block: 42px 18px;
}
.deck-cards { display: grid; isolation: isolate; }
.deck-card {
  --card-fill: #322a2b;
  min-width: 0;
  grid-area: 1 / 1;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--board-size);
  grid-template-rows: 1fr auto auto auto auto minmax(40px, auto) 1fr;
  grid-template-areas: ". board" "copy board" "tools board" "history board" "study board" "feedback board" ". board";
  align-items: center;
  column-gap: clamp(20px, 4vw, 60px);
  padding: clamp(18px, 2.1vw, 30px);
  padding-left: clamp(26px, 3.5vw, 52px);
  border: 1px solid #ffffff2c;
  border-radius: 18px;
  background: var(--card-fill);
  color: var(--text);
  transform-origin: center top;
  transition: transform .42s cubic-bezier(.22,.8,.2,1);
}
.mines-card { --card-fill: #25332f; --surface: #374942; --gutter: #192722; }
.shelf-card { --card-fill: #302b3a; }
.deck-card[data-depth="0"] { z-index: 3; }
.deck-card[data-depth="1"] { transform: translateY(-10px) scale(.972); z-index: 2; }
.deck-card[data-depth="2"] { transform: translateY(-20px) scale(.944); z-index: 1; }
.deck-card[inert] { pointer-events: none; }
.deck-card.is-leaving { animation: tuck-away .42s ease-in-out both; }
@keyframes tuck-away {
  0% { z-index: 4; transform: none; }
  42% { z-index: 4; transform: translate(-5%, 2%) rotate(-2deg) scale(.97); }
  43% { z-index: 0; }
  100% { z-index: 0; }
}
.deck-copy { grid-area: copy; padding-bottom: 16px; }
.deck-copy h2 {
  font: 400 clamp(36px, 4.5vw, 66px)/1.01 Georgia, serif;
  letter-spacing: -.055em;
  margin: 0;
  max-width: 11ch;
  text-wrap: balance;
}
.deck-copy p { margin: 14px 0 0; max-width: 34ch; color: #d4cbcc; font-size: clamp(15px,1.22vw,18px); line-height: 1.48; }
.deck-card #game-chess, .deck-card #game-mines { display: contents; }
.deck-card .chess-surface, .deck-card .opening-position, .mine-frame, .daily-preview { grid-area: board; align-self: center; width: 100%; }
.deck-card .chess-tools, .mines-card .puzzle-tools { grid-area: tools; }
.deck-card .chess-underboard { grid-area: history; }
.deck-card .chess-study-actions { grid-area: study; }
.deck-card .chess-tools, .deck-card .chess-underboard, .mines-card .puzzle-tools { width: 100%; max-width: 350px; }
.deck-card .chess-study-actions button, .mine-result button {
  background: var(--surface); color: var(--text); border: 0; border-radius: 6px;
  min-height: 32px; padding: 5px 10px; font-size: 13px;
}
.mines-card .puzzle-tools { font-size: 14px; margin-bottom: 0; }
.mine-result, .mines-card .play-hint { grid-area: history; margin: 0; text-align: left; font-size: 14px; }
.mine-result { display: flex; align-items: center; gap: 12px; }
.daily-preview { position: relative; }
.daily-preview-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 14px; }
.daily-preview-head strong { font-size: 21px; letter-spacing: -.04em; }
.daily-preview-head span { font-size: 13px; color: #d1c8d7; font-variant-numeric: tabular-nums; }
.daily-preview .shelf-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 14px; }
.daily-preview .shelf-cover { height: calc(var(--board-size) * .34); }
.daily-preview .tile-name { font-size: 15px; }
.daily-preview .tile-done { width: 34px; height: 34px; }
.deck-nav { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 38px); padding-top: 9px; }
.deck-nav button {
  display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 4px 2px;
  background: none; border: 0; color: #b9afb7; font: inherit; font-size: 14px;
}
.deck-nav button::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #756972; }
.deck-nav button[aria-current] { color: #fff0da; }
.deck-nav button[aria-current]::before { background: #f0c89f; }
@media (max-width: 740px) {
  .deck-track { --board-size: min(100cqi, 48svh, 440px); container-type: inline-size; }
  .deck-pin { width: min(100%, 468px); padding-block: 31px 8px; }
  .deck-card {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto 40px auto 42px minmax(35px,auto);
    grid-template-areas: "copy" "tools" "board" "history" "study";
    justify-items: stretch; align-content: center;
    padding: 16px 12px 10px; border-radius: 14px;
  }
  .deck-copy { padding-bottom: 4px; }
  .deck-copy h2 { font-size: clamp(29px, 6.6vw, 37px); max-width: none; }
  .deck-copy p { max-width: none; margin-top: 6px; font-size: 14px; line-height: 1.4; }
  .deck-card .chess-surface, .deck-card .opening-position, .deck-card .mine-frame, .daily-preview {
    max-width: var(--board-size); justify-self: center;
  }
  .deck-card .chess-tools, .deck-card .chess-underboard, .mines-card .puzzle-tools {
    justify-self: center; max-width: var(--board-size); min-height: 38px;
  }
  .deck-card .chess-study-actions { justify-content: center; min-height: 32px; }
  .chess-card #game-chess :is(.play-hint,.chess-result) {
    grid-area: board; align-self: start; justify-self: center; z-index: 3;
    margin: 6px; padding: 4px 9px; border-radius: 6px; background: var(--surface); gap: 8px;
  }
  .shelf-card { grid-template-rows: auto 1fr; grid-template-areas: "copy" "board"; }
  .daily-preview-head strong { display: none; }
  .daily-preview-head { margin-bottom: 9px; }
  .daily-preview .shelf-cover { height: calc(var(--board-size) * .35); }
  .daily-preview .shelf-tiles { gap: 16px 10px; }
  .deck-nav { padding-top: 2px; }
}
@media (max-width: 540px) {
  #sample .actions { min-height: 44px; }
  #hours-result { min-height: 4.5em; }
}
@media (max-width: 390px) {
  .home .nav nav { gap: 11px; }
  .home .nav nav a { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .deck-card { transition: none; }
  .deck-card.is-leaving { animation: none; }
}

.deck-card .chess-surface { touch-action: pan-y pinch-zoom; }
.deck-nav { justify-content: flex-start; }
.deck-nav .deck-next { margin-left: auto; color: #c2b7bd; }
.deck-next::before { display: none; }
@media (max-width: 540px) {
  .deck-nav { gap: 14px; }
  .deck-next span { display: none; }
  .deck-nav .deck-next { justify-content: center; width: 34px; }
}
@media (min-width: 741px) and (max-height: 540px) {
  .deck-pin { width: min(100%, 790px); padding-block: 24px 4px; }
  .deck-copy h2 { font-size: 35px; }
  .deck-copy { padding-bottom: 3px; }
  .deck-copy p { margin-top: 6px; font-size: 14px; }
}

@media (max-width: 360px) {
  .hero-title h1 em { text-wrap: balance; }
  .sunset-scene .sun-disc { bottom: 12%; }
  .home .nav > div { padding-inline: 12px; }
  .home .nav nav { gap: 8px; }
  .home .nav nav a { white-space: nowrap; font-size: 11px; }
  .deck-card .chess-tools { font-size: 12px; gap: 3px; }
}
