* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #dfdfd8;
  color: #20221d;
  font: 16px/1.55 "Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  word-break: keep-all;
}

main {
  max-width: 520px;
  margin: auto;
  background: #f7f6f0;
  overflow: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 6%;
  border-bottom: 1px solid #cacac0;
}

header b {
  font: 800 22px/1 Arial;
  letter-spacing: -1.6px;
}

header b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

header b img {
  display: block;
  border-radius: 7px;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

header a {
  font-size: 14px;
}

section {
  padding: 48px 6%;
}

section:first-of-type {
  padding-top: 25px;
}

.filter-example {
  padding-bottom: 0;
}

.filter-example + .filter-example {
  padding-top: 0;
}

/* Keep the same space below each photo, including the first photo's caption. */
.filter-example .proof {
  display: grid;
  grid-template-rows: auto minmax(60px, auto);
  align-items: start;
}

h1,h2,p,figure {
  margin: 0;
}

h1,h2 {
  font-weight: 720;
  letter-spacing: -.075em;
  line-height: 1.19;
}

h1 {
  font-size: clamp(32px,8.5vw,46px);
}

h2 {
  font-size: clamp(29px,7vw,39px);
}

.filter-title {
  font-size: min(5.8vw, 30px);
  white-space: nowrap;
}

#retro-orange-title {
  font-size: min(5.2vw, 27px);
}

p {
  margin: 15px 0 21px;
}

button,a {
  touch-action: manipulation;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible {
  outline: 3px solid #709c00;
  outline-offset: 3px;
}

.note,figcaption {
  font-size: 13px;
  color: #595d52;
}

.note {
  margin: 0 0 14px;
}

.proof {
  margin-top: 23px;
}

.art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--paper,#b9cddd);
  color: #1a2125;
  min-height: 235px;
  display: grid;
  align-content: end;
  padding: 20px;
  transition: background .2s;
}

.art:before,.art:after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.art:before {
  width: 77%;
  height: 165%;
  left: 43%;
  top: -25%;
  transform: rotate(28deg);
  background: var(--strip,#9eb3cc);
}

.art:after {
  width: 38%;
  height: 145%;
  left: 20%;
  top: 24%;
  transform: rotate(28deg);
  background: var(--fold,#e5e3ee);
}

.art strong {
  font: italic 400 clamp(52px,14vw,86px)/.98 Georgia,serif;
  letter-spacing: -.065em;
}

.art small {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin: 8px 0 0;
}

.proof figcaption,figure figcaption {
  padding: 9px 0;
}

.comparison {
  --split: 50%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.comparison-original {
  --paper: #cfd0c7;
  --strip: #b5b6b0;
  --fold: #e7e7e0;
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}
.compare-label {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #23251fe6;
  color: white;
  font-size: 12px;
}
.compare-label.before { left: 12px; }
.compare-label.after { right: 12px; }
.compare-line {
  position: absolute;
  inset-block: 0;
  left: var(--split);
  width: 2px;
  transform: translateX(-50%);
  background: white;
  box-shadow: 0 0 4px #0006;
}
.compare-line b {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  color: #23251f;
  background: white;
  font-size: 20px;
}
.comparison input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.comparison:focus-within { outline: 3px solid #394d37; outline-offset: 3px; }


.studio {
  background: #20251e;
  color: #f4f4eb;
}

.studio-photo {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 22px;
}

.studio figcaption {
  color: #c9cdbf;
}

.dial {
  margin: 15px 0 0;
}

.ticks {
  height: 22px;
  background: repeating-linear-gradient(90deg,#848b78 0 1px,transparent 1px 8px) left bottom / 100% 10px no-repeat;
}

.dial input {
  width: 100%;
  margin: 4px 0 8px;
  accent-color: #c7ee66;
  cursor: pointer;
}

.stops {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
}

.stops button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 9px 3px;
  color: #c8cbbb;
  font-size: 14px;
}

.stops button[aria-pressed=true] {
  color: #dcff86;
  border-color: #dcff86;
}

.stores {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.stores a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 5px;
  background: #20251e;
  color: white;
  text-decoration: none;
  font: 600 16px Arial;
}

#album-tone figure + figure {
  margin-top: 24px;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
}

.album-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.purchase details {
  border-bottom: 1px solid #c5c7ba;
  padding: 12px 0;
}

.purchase summary {
  font-weight: 650;
  cursor: pointer;
}

.purchase details p {
  margin: 10px 0;
}

.end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #c5c7ba;
  padding: 15px 6%;
  font-size: 13px;
}

.end nav {
  display: flex;
  gap: 4px;
}

.end a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.end a:hover, .end a:focus-visible {
  background: #eaeae1;
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  .art {
    transition: none;
  }
}


@media (prefers-reduced-motion:no-preference) {
  .art,.art::before,.art::after {
    transition: background-color 240ms ease-out;
  }

  .stops button {
    transition: color 160ms,background-color 160ms;
  }

  @keyframes story-enter {
    from {
      opacity: 0;
      transform: translateY(12px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .story-enter {
    animation: story-enter 460ms cubic-bezier(.2,.7,.2,1) both;
  }


  .story-enter:focus-within {
    animation: none;
  }
}

.gallery-travel {
  --paper: #c2ceac;
  --strip: #879b82;
  --fold: #d7d9bb;
}

.gallery-daily {
  --paper: #e3c4a9;
  --strip: #cb998a;
  --fold: #f2d9bd;
}


.photo-comparison img { display: block; width: 100%; height: auto; }

#filter-list { padding-bottom: 36px; }
#filter-list h2 { font-size: 24px; }
#filter-list p { margin: 8px 0 16px; }
.catalog { border-block: 1px solid #cecec4; }
.catalog summary { padding: 14px 0; cursor: pointer; font-weight: 650; }
.catalog summary small { margin-left: 8px; color: #595d52; font-weight: 400; }
.catalog h3 { margin: 16px 0 6px; font-size: 16px; }
.catalog ul { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 0 0 16px; padding: 0; }
.catalog li { padding: 3px 8px; border-radius: 4px; background: #eaeae1; font-size: 14px; }

header { flex-wrap: wrap; gap: 6px; }
#language {
  margin-inline-start: auto;
  max-width: 7em;
  padding: 6px 2px;
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  background: transparent;
  border: 0;
}
html:not(:lang(ko)) .filter-title { white-space: normal; }
html:lang(ja) body, html:lang(zh) body { word-break: normal; }
