@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/IBMPlexSans-Regular.ttf) format("truetype"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/IBMPlexSans-Medium.ttf) format("truetype"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/IBMPlexSans-SemiBold.ttf) format("truetype"); }

:root {
  --ink: #15191e;
  --accent: #e0118a;
  --mute: #566068;
  --line: #dfe1e3;
  --wall: #e8e5e0;
  --gutter: 20px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 17px; line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 var(--gutter); max-width: 2400px; margin: 0 auto; }
.top img { display: block; height: 24px; width: auto; }
.top a.shop { font-size: 15px; font-weight: 500; text-decoration: none; }
.top a.shop:hover { text-decoration: underline; }

/* split layout: words one side, the print on its wall the other */
.split { display: grid; grid-template-columns: minmax(0, 1fr); }
.wall { background: var(--wall); display: flex; justify-content: center; padding: 32px var(--gutter) 40px; }
.print-box { width: 100%; max-width: 440px; }
.print {
  background: #17181a; padding: 9px; margin: 0;
  box-shadow: 0 30px 36px -24px rgba(0,0,0,.5), 0 2px 5px rgba(0,0,0,.25);
}
.print img, .print .blank { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; background: #f7f6f2; object-fit: cover; }
.print-note { margin: 22px 0 0; font-size: 14px; color: var(--mute); text-align: center; }

.words { padding: 36px var(--gutter) 56px; max-width: 640px; width: 100%; }

h1 { margin: 0; font-size: clamp(32px, 7.5vw, 44px); line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; }
h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 14px; }
.lede { font-size: 19px; color: var(--mute); margin: 14px 0 26px; max-width: 34em; }

/* search */
label.find { display: block; font-size: 15px; font-weight: 500; margin: 0 0 8px; }
.search {
  display: block; width: 100%; height: 58px; padding: 0 16px; font: inherit; font-size: 19px; color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: 4px; appearance: none; -webkit-appearance: none;
}
.search::placeholder { color: #7b848b; }
.search:focus { outline: 3px solid var(--ink); outline-offset: 2px; }

.steps-line { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 16px; color: var(--mute); }
.steps-line b { color: var(--ink); font-weight: 600; margin-right: 6px; }

.count { margin: 22px 0 6px; font-size: 15px; color: var(--mute); }
.results { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.results li { border-bottom: 1px solid var(--line); }
.results a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 2px; text-decoration: none; }
.results a:hover .r-name, .results a:focus-visible .r-name { text-decoration: underline; }
.r-name { font-weight: 500; }
.r-name small { font-weight: 400; font-size: 16px; color: var(--mute); }
.r-place { flex: none; font-size: 15px; color: var(--mute); text-align: right; }
.btn-more { margin: 16px 0 0; }

.no-match { margin: 22px 0 0; color: var(--ink); }

/* buttons */
.btn {
  display: block; width: 100%; padding: 15px 20px; text-align: center; text-decoration: none;
  font: inherit; font-size: 17px; font-weight: 500; line-height: 1.25; border-radius: 4px; cursor: pointer;
  border: 2px solid var(--ink); background: #fff; color: var(--ink);
}
.btn:hover { background: var(--ink); color: #fff; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #c20d77; border-color: #c20d77; }
.btn.small { display: inline-block; width: auto; padding: 8px 16px; font-size: 15px; }

/* course page */
.crumb { display: inline-block; margin: 0 0 18px; font-size: 15px; color: var(--mute); text-decoration: none; }
.crumb:hover { color: var(--ink); text-decoration: underline; }
.sub { margin: 8px 0 0; font-size: 21px; font-weight: 500; }
.where { margin: 6px 0 0; color: var(--mute); }
.flown { margin: 22px 0 0; font-weight: 500; }
.explain { margin: 8px 0 0; color: var(--mute); max-width: 32em; }

.order { margin-top: 34px; border-top: 1px solid var(--ink); padding-top: 24px; }
.step { display: grid; grid-template-columns: 30px minmax(0, 1fr); margin: 0 0 26px; }
.step > b { font-weight: 600; font-size: 17px; padding-top: 1px; }
.step h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; }
.codebox { display: flex; gap: 10px; align-items: stretch; }
.code { flex: 1; min-width: 0; display: flex; align-items: center; padding: 0 14px; min-height: 48px; background: #f3f4f5; border: 1px solid var(--line); border-radius: 4px; font-size: 18px; font-weight: 500; letter-spacing: .02em; overflow-wrap: anywhere; user-select: all; }
.codebox .btn { width: 96px; padding: 0; flex: none; font-size: 16px; }
.hint { margin: 10px 0 14px; font-size: 16px; color: var(--mute); }
.buy { display: grid; gap: 12px; }
.ace { margin: 14px 0 0; font-size: 15px; }
.also { margin-top: 30px; font-size: 16px; }
.also h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.also ul { margin: 0; padding: 0; list-style: none; }
.also li { padding: 3px 0; }

/* not finding */
.missing { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); }
.missing h2 { font-size: 19px; }
.missing p { color: var(--mute); }
.missing a { color: var(--ink); font-weight: 500; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 28px var(--gutter) 40px; font-size: 14px; color: var(--mute); }
.foot-in { max-width: 1200px; margin: 0 auto; }
.foot p { margin: 0 0 8px; max-width: 52em; }
.foot a { color: var(--mute); }
.foot a:hover { color: var(--ink); }

@media (max-width: 899px) { body.searching #home-wall { display: none; } }

@media (min-width: 560px) {
  :root { --gutter: 32px; }
  .buy { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  :root { --gutter: 56px; }
  .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: calc(100vh - 65px); }
  .split.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .wall { padding: 0 var(--gutter); }
  .wall-in { position: sticky; top: 0; height: calc(100vh - 65px); max-height: 100%; display: flex; align-items: center; width: 100%; justify-content: center; }
  .print-box { width: auto; max-width: none; }
  .print-box .print { height: min(calc(100vh - 65px - 80px), 1180px); aspect-ratio: 3 / 4; padding: clamp(8px, .8vw, 16px); }
  .print img, .print .blank { height: 100%; width: 100%; }
  .words { padding: 56px var(--gutter) 72px; }
  .split .words { margin-right: auto; }
  .buy { grid-template-columns: 1fr; }
}
@media (min-width: 1500px) {
  body { font-size: 18px; }
  .words { max-width: 680px; }
  .split .words { margin: 0 auto; }
}
