:root {
  color-scheme: light;
  --paper: #f5f1e6;
  --ink: #343f36;
  --muted: #747a6e;
  --line: #d9d9c9;
  --accent: #466055;
  --wash: #e9ede1;
  --display: "DM Serif Display", Georgia, serif;
  --body: "Crimson Pro", Georgia, serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.45;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23705c35' opacity='.035' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.upload-button:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
button {
  color: var(--ink);
}
.atelier {
  max-width: 1440px;
  margin: auto;
  padding: 0 48px;
}
.atelier-rosette {
  --accent: #3a6289;
  --wash: #e9edf0;
  --ink: #34434e;
}
.atelier-trading-card {
  --accent: #756083;
  --wash: #ede7ee;
  --ink: #43394d;
}
.atelier-stained-glass {
  --accent: #6a6540;
  --wash: #eeebda;
}
.atelier-alpenglow {
  --accent: #925f58;
  --wash: #efe1d9;
}
.atelier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  min-height: 88px;
}
.press-mark {
  font-family: var(--display);
  font-size: 34px;
  line-height: 0.95;
  text-decoration: none;
  letter-spacing: -1.5px;
}
.press-mark em {
  font-weight: 400;
  color: var(--accent);
}
.press-mark span {
  display: block;
  font:
    9px/1.4 "Special Elite",
    monospace;
  letter-spacing: 1.5px;
  margin-top: 10px;
}
.studio-index {
  font-size: 16px;
  text-decoration: none;
  margin-left: auto;
}
.studio-index span {
  margin-left: 12px;
}
.edition {
  font:
    10px "Special Elite",
    monospace;
  letter-spacing: 1.4px;
  border-left: 1px solid var(--line);
  padding-left: 24px;
  color: var(--muted);
}
.atelier-intro {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding: 26px 0 26px;
  align-items: flex-end;
}
.kicker {
  font:
    10px/1.5 "Special Elite",
    monospace;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 0 0 15px;
}
h1 {
  font: clamp(42px, 4.6vw, 68px) / 1.04 var(--display);
  letter-spacing: -2px;
  margin: 0;
  font-weight: 400;
}
h1 em {
  color: var(--accent);
  font-weight: 400;
}
.intro-right {
  max-width: 280px;
  position: relative;
  padding-top: 12px;
}
.intro-right p {
  font-size: 18px;
  line-height: 1.5;
  margin: 18px 0 0;
  color: var(--muted);
}
.studio-seal {
  font-size: 40px;
  line-height: 1;
  width: 64px;
  height: 64px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: rotate(-12deg);
  color: var(--accent);
  opacity: 0.78;
}
.atelier-bench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 334px;
  gap: 28px;
  align-items: start;
}
.art-column {
  min-width: 0;
  position: sticky;
  top: 26px;
}
.art-stage {
  padding: 10px;
  background: #e1dece;
  box-shadow: inset 0 0 0 1px #b8b39d35;
  position: relative;
}
.art-stage:before,
.art-stage:after {
  content: "";
  position: absolute;
  z-index: 2;
  top: -9px;
  width: 74px;
  height: 24px;
  background: #e9e1c8c9;
  box-shadow: 0 1px 2px #423d2710;
  pointer-events: none;
}
.art-stage:before {
  left: 30px;
  transform: rotate(-5deg);
}
.art-stage:after {
  right: 30px;
  transform: rotate(5deg);
}
canvas {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper);
  box-shadow: 0 3px 16px #3d3a2921;
  cursor: crosshair;
}
.atelier-rosette canvas {
  touch-action: none;
}
.atelier-trading-card canvas,
.atelier-alpenglow canvas {
  cursor: default;
}
.atelier-trading-card .art-stage {
  max-width: 520px;
  margin: auto;
  padding: 23px 69px;
  background: radial-gradient(ellipse at 50% 45%, #4a3e79, #151326 75%);
  perspective: 900px;
  box-shadow: 0 27px 60px #1b12396b, inset 0 0 0 1px #e2c7fa69;
}
.atelier-trading-card canvas {
  border-radius: 13px;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .2s ease-out;
  box-shadow: 0 22px 38px #080c17b3, 0 0 28px #d498cf88;
}
.atelier-trading-card .art-stage:before,
.atelier-trading-card .art-stage:after {
  display: none;
}
.holographic {
  overflow: hidden;
}
.holographic:after {
  display: block !important;
  inset: 23px 69px !important;
  transform: none !important;
  width: auto !important;
  height: auto !important;
  border-radius: 13px;
  background: linear-gradient(
    120deg,
    transparent 15%,
    #ffdff544 24%,
    #e8ffff99 29%,
    #fff5cd33 35%,
    transparent 43%
  ) !important;
  background-size: 350% 100% !important;
  mix-blend-mode: screen;
  animation: foil 9s ease-in-out infinite;
  opacity: 0.88;
  pointer-events: none;
}
/* Each material gets its own stage. The artwork itself is shared with print. */
.atelier-rosette .art-stage {
  background: radial-gradient(circle at 50% 42%, #4e3b67, #151221 78%);
  padding: 18px;
  box-shadow: 0 20px 44px #24173b54, inset 0 0 0 1px #ba97c355;
}
.atelier-rosette .art-stage:before,
.atelier-rosette .art-stage:after,
.atelier-neighborhood .art-stage:before,
.atelier-neighborhood .art-stage:after,
.atelier-stained-glass .art-stage:before,
.atelier-stained-glass .art-stage:after,
.atelier-alpenglow .art-stage:before,
.atelier-alpenglow .art-stage:after {
  display: none;
}
.atelier-rosette {
  --accent: #8c538f;
  --wash: #f0e8f0;
}
.atelier-rosette h1 em { color: #a15e99; }
.atelier-neighborhood .art-stage {
  background: linear-gradient(#b0d3d4, #e2ddc8);
  padding: 12px;
  box-shadow: 0 18px 34px #416f7350;
}
.atelier-neighborhood { --accent: #3b746f; --wash: #e2efea; }
.atelier-stained-glass .art-stage {
  background: radial-gradient(ellipse at 50% 30%, #59616b, #18272e 80%);
  padding: 17px;
  box-shadow: 0 20px 50px #26373b6e, inset 0 0 0 1px #cdbb945e;
}
.atelier-stained-glass { --accent: #86613c; --wash: #f3ebdd; }
.atelier-alpenglow .art-stage {
  background: linear-gradient(145deg, #4e5d75, #c48b7e);
  padding: 13px;
  box-shadow: 0 20px 44px #39476367;
}
.atelier-alpenglow { --accent: #9f665f; --wash: #f3e5dc; }
@media (prefers-reduced-motion: reduce) {
  .atelier-trading-card canvas { transform: none; transition: none; }
  .holographic:after { animation: none; background-position: 50% 0; }
}
@keyframes foil {
  0%,
  12% {
    background-position: 120% 0;
  }
  70%,
  100% {
    background-position: -50% 0;
  }
}
.art-under {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding: 15px 0 0;
}
.art-under p {
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
  margin: 0;
  max-width: 80%;
}
.quiet-button {
  border: 0;
  background: none;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 2px 0;
}
.art-under button {
  white-space: nowrap;
}
.art-signature {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 17px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.art-signature span:first-child {
  font: italic 22px var(--display);
  color: var(--accent);
}
.art-signature span:last-child {
  font:
    9px/1.5 "Special Elite",
    monospace;
  letter-spacing: 1.4px;
  color: var(--muted);
}
.map-credit {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 15px;
}
.map-credit strong,
.map-credit span {
  display: block;
}
.map-credit strong {
  font-weight: 500;
}
.map-credit span {
  color: var(--muted);
}
.print-truth {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  margin: 18px 0;
}
.control-tray {
  border: 1px solid var(--line);
  background: #fbf9f1a6;
  padding: 25px 24px 16px;
  box-shadow: 3px 4px 0 #dedbc757;
}
.tray-title {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 23px;
}
.tray-title h2 {
  font: 24px/1.15 var(--display);
  margin: 0 0 7px;
  letter-spacing: -0.4px;
}
.tray-title > span {
  font:
    9px "Special Elite",
    monospace;
  letter-spacing: 1.4px;
  color: var(--muted);
}
.all-tools {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.studio-group {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
  min-width: 0;
}
.studio-group legend {
  padding: 0;
  margin: 0 0 13px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 500;
}
.studio-group legend span {
  font:
    10px "Special Elite",
    monospace;
  color: var(--accent);
  margin-right: 12px;
}
.choices {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}
.choices button {
  border: 1px solid var(--line);
  background: transparent;
  font-size: 14px;
  line-height: 1.2;
  padding: 9px 11px;
  border-radius: 3px;
  min-height: 36px;
}
.choices button:hover {
  background: var(--wash);
}
.choices button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffdf4;
}
.swatches {
  display: flex;
  gap: 12px;
  margin: 16px 0 4px;
}
.swatches button {
  border: 3px solid transparent;
  outline: 1px solid #bdb9aa;
  border-radius: 50%;
  width: 31px;
  height: 31px;
  padding: 0;
  box-shadow: inset 0 0 0 1px #ffffff70;
}
.swatches button[aria-pressed="true"] {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.swatches span {
  color: #fff;
  text-shadow: 0 1px 2px #333;
  font-family: sans-serif;
  font-size: 16px;
}
.studio-field {
  display: block;
  margin: 12px 0;
}
.studio-field > span,
.studio-range > span {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 5px;
}
.studio-field input,
.studio-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fffdf6;
  border-radius: 2px;
  padding: 10px 11px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.3;
}
.studio-field textarea {
  height: 100px;
  resize: vertical;
}
.studio-field input::placeholder,
.studio-field textarea::placeholder {
  color: #929487;
}
.studio-range {
  display: block;
  margin: 17px 0;
}
.studio-range > span {
  display: flex;
  justify-content: space-between;
}
.studio-range output {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.studio-range input {
  width: 100%;
  accent-color: var(--accent);
  margin: 3px 0;
  cursor: pointer;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: none;
  font-size: 15px;
  padding: 6px 0;
  text-align: left;
}
.toggle > span {
  border: 1px solid var(--line);
  background: var(--paper);
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-family: sans-serif;
  font-size: 12px;
}
.toggle[aria-pressed="true"] > span {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.tool-row button,
.imagine button {
  background: var(--wash);
  border: 1px solid var(--line);
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 2px;
}
.lookup-button {
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 10px 8px;
  color: #fffdf4;
  width: 100%;
  font-size: 15px;
  border-radius: 2px;
}
.small-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 8px 0 13px;
}
.imagine {
  margin: 16px 0;
  font-size: 14px;
}
.imagine summary {
  cursor: pointer;
  text-underline-offset: 3px;
}
.imagine[open] {
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}
.upload-button {
  position: relative;
  display: flex;
  justify-content: space-between;
  background: var(--wash);
  border: 1px dashed var(--accent);
  padding: 15px;
  font-size: 17px;
  cursor: pointer;
  margin-bottom: 17px;
  overflow: hidden;
}
.upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}
.stat-fields > div {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 12px;
}
.stat-fields .studio-field {
  margin: 3px 0 7px;
}
.sound-button {
  display: block;
  background: var(--wash);
  border: 1px solid var(--line);
  width: 100%;
  margin-top: 18px;
  padding: 10px;
  font-size: 15px;
}
.studio-finish {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.postcard-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 15px;
  border: 0;
  background: var(--accent);
  color: #fffdf3;
  font-size: 18px;
  border-radius: 3px;
  box-shadow: 0 3px 0 #313c3420;
}
.postcard-button:hover:not(:disabled) {
  filter: brightness(1.1);
}
.studio-finish > p:not(.notice) {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  margin: 10px 0;
}
.save-button {
  display: block;
  margin: 17px auto 0;
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
}
.notice {
  font-size: 14px;
  color: var(--accent);
  line-height: 1.45;
  text-align: center;
  margin: 12px 0 0;
  min-height: 0;
}
.notice:empty {
  display: none;
}
.atelier-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 25px 0;
  font-size: 14px;
  color: var(--muted);
}
.codewrights-credit {
  margin: 0 auto 24px;
}
.gallery-intro {
  padding-bottom: 45px;
}
.gallery-intro .intro-right {
  max-width: 340px;
}
.studio-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 24px;
}
.shelf-card {
  display: block;
  text-decoration: none;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.shelf-picture {
  aspect-ratio: 1.5;
  background: #e6e3d6;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
}
.shelf-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.shelf-card:hover img {
  transform: scale(1.035);
}
.shelf-card h2 {
  font: 27px var(--display);
  margin: 18px 0 6px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.shelf-card h2 span {
  font-size: 23px;
  font-family: var(--body);
  color: var(--accent);
}
.shelf-card p {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
}
.shelf-tag {
  font:
    9px "Special Elite",
    monospace;
  letter-spacing: 1.5px;
  color: var(--accent);
  display: block;
  margin-top: 16px;
}
.shelf-card:first-child {
  grid-column: span 2;
}
.shelf-card:first-child .shelf-picture {
  aspect-ratio: 2.4;
}
.shelf-card:first-child h2 {
  font-size: 34px;
}
.shelf-card .new-label {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 5px 8px;
  background: #faf7e9e6;
  font:
    9px "Special Elite",
    monospace;
  letter-spacing: 1px;
}
.gallery-note {
  padding: 32px;
  border: 1px solid var(--line);
  text-align: center;
  max-width: 750px;
  margin: 50px auto 0;
  font-size: 19px;
}
.gallery-note em {
  color: var(--accent);
}
@media (min-width: 1600px) {
  .atelier-bench {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 48px;
  }
}
@media (max-width: 1000px) {
  .atelier {
    padding: 0 28px;
  }
  .atelier-bench {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 25px;
  }
  .control-tray {
    padding: 22px 18px;
  }
  .intro-right {
    max-width: 245px;
  }
  .atelier-intro {
    gap: 24px;
  }
  h1 {
    font-size: 51px;
  }
  .art-stage {
    padding: 10px;
  }
  .art-under {
    display: block;
  }
  .art-under p {
    max-width: none;
  }
  .art-under button {
    margin-top: 10px;
  }
  .art-signature {
    display: block;
  }
  .art-signature span:last-child {
    display: block;
    margin-top: 8px;
  }
  .atelier-trading-card .art-stage {
    padding: 18px;
  }
  .holographic:after {
    inset: 18px !important;
  }
  .studio-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shelf-card:first-child {
    grid-column: span 1;
  }
  .shelf-card:first-child .shelf-picture {
    aspect-ratio: 1.5;
  }
  .shelf-card:first-child h2 {
    font-size: 27px;
  }
}
@media (max-width: 720px) {
  .atelier {
    padding: 0 20px;
  }
  .atelier-header {
    min-height: 88px;
    gap: 15px;
  }
  .press-mark {
    font-size: 30px;
  }
  .press-mark span {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  .edition {
    display: none;
  }
  .studio-index {
    font-size: 14px;
  }
  .atelier-intro {
    padding: 30px 0;
    display: block;
  }
  h1 {
    font-size: 44px;
    letter-spacing: -1.3px;
  }
  .kicker {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .intro-right {
    max-width: none;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 22px;
  }
  .intro-right p {
    font-size: 17px;
    line-height: 1.4;
    margin: 0;
  }
  .studio-seal {
    font-size: 31px;
    width: 47px;
    height: 47px;
    flex-shrink: 0;
  }
  .atelier-bench {
    display: block;
  }
  .art-column {
    position: static;
  }
  .art-stage {
    padding: 8px;
  }
  .art-stage:before,
  .art-stage:after {
    width: 49px;
    height: 17px;
    top: -5px;
  }
  .art-stage:before {
    left: 12px;
  }
  .art-stage:after {
    right: 12px;
  }
  .art-under {
    display: flex;
    gap: 14px;
  }
  .art-under p {
    font-size: 14px;
    max-width: 79%;
  }
  .art-under button {
    margin: 0;
    font-size: 14px;
  }
  .art-signature {
    display: flex;
    margin-top: 16px;
    padding-top: 12px;
  }
  .art-signature span:first-child {
    font-size: 21px;
  }
  .art-signature span:last-child {
    font-size: 8px;
    margin: 0;
    text-align: right;
    max-width: 145px;
  }
  .control-tray {
    margin-top: 28px;
    padding: 23px 22px;
  }
  .tray-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-bottom: 16px;
  }
  .tray-title h2 {
    font-size: 23px;
    margin: 0;
  }
  .tray-title > span {
    font-size: 8px;
    max-width: 60px;
    line-height: 1.5;
    text-align: right;
  }
  .studio-group {
    margin-bottom: 26px;
  }
  .choices button {
    padding: 11px 13px;
    min-height: 42px;
    font-size: 15px;
  }
  .studio-group legend {
    font-size: 18px;
  }
  .studio-field input,
  .studio-field textarea {
    font-size: 17px;
    min-height: 44px;
  }
  .swatches {
    gap: 17px;
  }
  .swatches button {
    width: 35px;
    height: 35px;
  }
  .studio-range input {
    min-height: 25px;
  }
  .toggle {
    padding: 9px 0;
    font-size: 16px;
  }
  .quiet-button {
    min-height: 32px;
  }
  .postcard-button {
    font-size: 20px;
    min-height: 52px;
  }
  .save-button {
    padding: 8px 0;
  }
  .atelier-footer {
    display: block;
    margin-top: 38px;
  }
  .atelier-footer > span {
    display: block;
    margin: 5px 0;
  }
  .atelier-trading-card .art-stage {
    max-width: 360px;
    padding: 15px 34px;
  }
  .holographic:after {
    inset: 15px 34px !important;
  }
  .print-truth {
    font-size: 13px;
  }
  .studio-shelf {
    gap: 28px;
    grid-template-columns: 1fr;
  }
  .shelf-card h2 {
    margin-top: 14px;
  }
  .shelf-picture {
    aspect-ratio: 1.6;
  }
  .gallery-intro .intro-right {
    max-width: none;
  }
  .gallery-note {
    padding: 20px;
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .holographic:after {
    background-position: 45% 0 !important;
  }
}
