/* AFTER. ISSUE 001 — the interactive editorial layer */
html { scroll-padding-top: 90px; }
[hidden] { display: none !important; }
button, select, input, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #b46446; outline-offset: 3px;
}
.site-header { background: rgba(237,236,234,.95); }
.issue-bar { letter-spacing: .19em; }
.hero { min-height: min(920px,calc(100svh - 106px)); }
.hero-image { position: relative; isolation: isolate; }
.hero-image > picture { position: relative; z-index: 0; }
.hero-image > picture img { filter: saturate(.82) contrast(1.03); }
.hero-afterimage {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
  -webkit-mask-image: radial-gradient(circle 170px at var(--trace-x,50%) var(--trace-y,50%),#000 18%,transparent 78%);
  mask-image: radial-gradient(circle 170px at var(--trace-x,50%) var(--trace-y,50%),#000 18%,transparent 78%);
  mix-blend-mode: screen;
}
.hero-afterimage picture { display: block; height: 100%; }
.hero-afterimage img { height: 100%; object-fit: contain; object-position: center; filter: saturate(1.8) contrast(1.28) hue-rotate(-17deg); transform: translate(9px,-3px) scale(1.008); }
.hero-image.tracing .hero-afterimage { opacity: .72; }
.hero-frame-label, .hero-frame-index {
  position: absolute; z-index: 2; bottom: 18px; color: #f9f9f7;
  font: 12px/1.2 "Courier New", monospace; letter-spacing: .12em;
  text-shadow: 0 1px 15px #111;
}
.hero-frame-label { left: 22px; display: flex; gap: 25px; }
.hero-frame-index { right: 22px; }
.hero-copy { border-top: 1px solid #353534; }
.hero-copy .eyebrow { align-self: start; }
.hero-copy .text-link { white-space: nowrap; }
.hero-copy .muted-link { color: #aaa9a5; }
.hero h1 span { color: #aaa8a3; }

.issue-intro {
  min-height: clamp(380px,55vw,790px);
  display: grid; grid-template-columns: 1fr 1fr;
  background: #f4f3ef; border-bottom: 1px solid #111;
}
.issue-intro-left,.issue-intro-right {
  padding: clamp(22px,3vw,52px); display: flex; flex-direction: column; justify-content: space-between;
}
.issue-intro-left { border-right: 1px solid #111; }
.issue-intro span,.issue-intro a { font: 13px/1.3 "Courier New",monospace; letter-spacing: .1em; }
.issue-intro p { margin: 0; font-size: clamp(58px,9vw,165px); letter-spacing: -.095em; line-height: .79; font-weight: 500; }
.issue-intro-right p { align-self: flex-end; }
.issue-intro em,.edit-heading em,.poster-copy em,.poster-studio h2 em { color: #a84e2f; font-style: normal; }
.issue-intro a { align-self: flex-end; border-bottom: 1px solid; padding-bottom: 7px; }
.issue-intro a:hover { color: #a84e2f; }

.edit-section { background: #101010; color: #f3f2ed; padding: clamp(70px,10vw,150px) 24px 48px; }
.edit-heading { display: grid; grid-template-columns: 1fr 2.5fr 1fr; align-items: end; gap: 28px; border-bottom: 1px solid #555; padding-bottom: 40px; }
.edit-heading h2 { font-size: clamp(65px,9.2vw,165px); line-height: .8; letter-spacing: -.087em; font-weight: 500; margin: 0; }
.edit-heading > p:last-child { font-size: 16px; line-height: 1.35; margin: 0; max-width: 280px; }
.edit-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: #454441; border: 1px solid #454441; margin-top: 32px; }
.edit-card {
  appearance: none; border: 0; background: #171716; color: inherit; text-align: left;
  min-width: 0; padding: 15px; display: flex; flex-direction: column; cursor: pointer;
  transition: background .3s ease;
}
.edit-card:hover,.edit-card:focus-visible { background: #252422; }
.edit-card-head,.edit-card-foot { display: flex; justify-content: space-between; gap: 10px; font: 12px/1.25 "Courier New",monospace; letter-spacing: .06em; }
.edit-card-head { color: #b5b2ac; min-height: 34px; }
.edit-card-image { width: 100%; display: grid; place-items: center; aspect-ratio: 1 / .92; overflow: hidden; background: #dad8d5; margin: 10px 0 24px; position: relative; }
.edit-card-image::before { content: ""; position: absolute; inset: 0; background: var(--edit-tone); opacity: .05; z-index: 1; pointer-events: none; }
.edit-card-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .55s cubic-bezier(.18,.6,.2,1); }
.edit-card:hover img { transform: scale(1.08); }
.edit-card-name { font-size: clamp(34px,4.6vw,70px); line-height: .85; font-weight: 500; letter-spacing: -.065em; }
.edit-card-mood { margin-top: 14px; color: #aeaaa5; font-size: 16px; line-height: 1.3; min-height: 42px; }
.edit-card-foot { margin-top: 30px; border-top: 1px solid #555; padding-top: 12px; color: #bdbbb5; }
.edit-card-foot span:last-child { font-size: 19px; color: var(--edit-tone); line-height: .7; }
.edit-end { display: flex; justify-content: space-between; padding-top: 28px; font: 12px/1.25 "Courier New",monospace; letter-spacing: .09em; }
.edit-end a { padding-bottom: 5px; border-bottom: 1px solid; }
.edit-end a:hover { color: #b46446; }

.collection { padding-top: clamp(90px,12vw,190px); }
.catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.scent-card { min-height: 530px; padding: 15px; }
.card-art { width: 100%; border: 0; padding: 0; cursor: pointer; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ink); margin-top: 24px; }
.card-detail,.card-add { min-height: 47px; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 7px 10px; border: 0; background: #e9e8e4; color: #111; cursor: pointer; font: 12px/1.2 "Courier New",monospace; letter-spacing: .04em; text-align: center; }
.card-add { background: #111; color: #f8f7f2; }
.card-detail:hover { background: #c9c7c2; }
.card-add:hover { background: #a84e2f; }
.card-bottle-choice .card-add { font-size: 11px; padding-inline: 7px; }
.scent-card.selected .card-detail { background: #ededeb; }
.scent-card.selected .card-add { background: #111; }
.spread-kit { margin-top: 18px; padding-top: 16px; border-top: 1px solid #aaa8a2; }
.spread-feature-link { display:inline-block; margin-top:15px; border-bottom:1px solid currentColor; font:12px/1.4 "Courier New",monospace; letter-spacing:.05em; }
.spread-kit > span { display: block; margin-bottom: 10px; font: 11px/1.4 "Courier New",monospace; letter-spacing: .07em; }
.spread-kit > div { display: flex; flex-wrap: wrap; gap: 8px; }
.spread-kit button { min-height: 40px; padding: 7px 12px; border: 1px solid #242321; background: transparent; color: #141414; cursor: pointer; font: 12px/1.2 "Courier New",monospace; }
.spread-kit button:hover { background: #141414; color: #fff; }
.brand-scent { padding: 10px; grid-template-columns: minmax(0,1fr) auto; }
.brand-scent-open { flex: 1; min-width: 0; display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 12px; padding: 0; background: transparent; border: 0; text-align: left; cursor: pointer; }
.brand-scent-open img { width: 72px; height: 92px; object-fit: contain; }
.brand-scent-add { width: 36px; height: 36px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; font-size: 20px; }
.brand-size-choice { display: flex; align-items: center; gap: 5px; }
.brand-size-choice select { height: 36px; max-width: 78px; background: transparent; border: 1px solid currentColor; color: inherit; font: 11px/1 "Courier New",monospace; }
.brand-scent-add:hover { background: #111; color: #fff; }

.poster-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 680px; background: #111; color: #f5f4f1; overflow: hidden; }
.poster-preview { min-height: 680px; position: relative; overflow: hidden; }
.poster-preview img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: grayscale(.35) contrast(1.08); }
.poster-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(0,0,0,.25),transparent 32%,transparent 55%,rgba(0,0,0,.50)); pointer-events: none; }
.poster-preview span { position: absolute; z-index: 1; left: clamp(22px,4vw,75px); color: #fff; }
.poster-preview-top { top: 32px; font: 13px/1 "Courier New",monospace; letter-spacing: .14em; }
.poster-preview-title { bottom: 85px; font-size: clamp(52px,7vw,126px); line-height: .81; letter-spacing: -.085em; font-weight: 500; }
.poster-preview-bottom { bottom: 28px; font: 12px/1 "Courier New",monospace; letter-spacing: .1em; }
.poster-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(38px,6vw,110px); }
.poster-copy h2 { margin: 50px 0 38px; font-size: clamp(70px,8.3vw,150px); line-height: .8; letter-spacing: -.085em; font-weight: 500; }
.poster-copy > p:not(.eyebrow) { max-width: 470px; font-size: clamp(22px,2vw,34px); line-height: 1.12; letter-spacing: -.035em; }
.poster-copy button { border: 1px solid #f8f7f3; color: #111; background: #f8f7f3; padding: 18px 24px; margin-top: 20px; display: flex; justify-content: space-between; gap: 70px; cursor: pointer; font: 13px/1 "Courier New",monospace; letter-spacing: .07em; }
.poster-copy button:hover { background: #b46446; border-color: #b46446; }
.poster-copy > span:last-child { margin-top: 28px; color: #95938e; font: 11px/1.35 "Courier New",monospace; letter-spacing: .03em; }

.dialog-open { overflow: hidden; }
.experience-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; }
.experience-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.86); backdrop-filter: blur(12px); }
.experience-dialog { position: relative; background: #eeeDEA; color: #111; width: min(1240px,100%); max-height: min(900px,calc(100svh - 40px)); overflow-y: auto; outline: 0; box-shadow: 0 40px 100px rgba(0,0,0,.35); }
.experience-close { position: sticky; top: 0; float: right; z-index: 10; min-width: 112px; height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 0; background: #111; color: #f8f7f2; padding: 0 16px; cursor: pointer; font: 12px/1 "Courier New",monospace; letter-spacing: .08em; }
.experience-close span { font-size: 22px; }
.scent-spread { display: grid; grid-template-columns: 1fr 1fr; min-height: 710px; }
.spread-art { background: #d4d2cf; display: grid; grid-template-rows: auto minmax(0,1fr) auto; padding: 26px; min-width: 0; overflow: hidden; }
.spread-top,.spread-bottom { display: flex; justify-content: space-between; gap: 12px; font: 12px/1.25 "Courier New",monospace; letter-spacing: .09em; }
.spread-art img { align-self: center; justify-self: center; display: block; width: min(86%,470px); height: min(100%,520px); min-width: 0; min-height: 0; object-fit: contain; object-position: center; mix-blend-mode: multiply; }
.spread-copy { display: flex; flex-direction: column; padding: clamp(42px,5vw,88px) clamp(24px,5vw,74px) 38px; }
.spread-copy h2 { margin: 80px 0 0; font-size: clamp(70px,7.5vw,132px); line-height: .75; letter-spacing: -.09em; font-weight: 500; overflow-wrap: anywhere; }
.spread-mood { margin: 28px 0 30px; font-size: clamp(23px,2.6vw,42px); letter-spacing: -.045em; line-height: 1.05; color: var(--spread-tone); }
.spread-reference { display: grid; gap: 10px; padding: 20px 0; border-top: 1px solid #111; border-bottom: 1px solid #111; }
.spread-reference span,.spread-sizes label { font: 12px/1.3 "Courier New",monospace; letter-spacing: .07em; }
.spread-reference strong { font-size: 18px; font-weight: 400; }
.spread-sizes { display: grid; gap: 9px; margin-top: 26px; }
.spread-sizes select,.poster-studio select { width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid #111; border-radius: 0; background: #f5f4f0; color: #111; font: 15px/1.25 Helvetica,Arial,sans-serif; }
.spread-sizes small { font-size: 13px; line-height: 1.35; color: #5a5955; }
.spread-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 24px; }
.spread-actions button { min-height: 50px; padding: 10px 14px; border: 1px solid #111; cursor: pointer; font: 12px/1.25 "Courier New",monospace; letter-spacing: .04em; }
#spread-add { background: #111; color: #fff; display: flex; align-items: center; justify-content: space-between; }
#spread-add:hover { background: var(--spread-tone); border-color: var(--spread-tone); }
#spread-poster { background: transparent; }
#spread-poster:hover { background: #dddcd7; }
.spread-status { min-height: 20px; font: 13px/1.4 "Courier New",monospace; color: var(--spread-tone); }
.spread-status a { text-decoration: underline; }
.spread-disclaimer { margin: auto 0 0; font: 12px/1.5 "Courier New",monospace; color: #686762; }

.poster-studio { display: grid; grid-template-columns: 1fr 1fr; min-height: 740px; background: #eeeDEA; }
.poster-studio-art { background: #272727; padding: clamp(24px,4vw,70px); display: grid; place-items: center; }
.poster-studio-art canvas { width: min(100%,480px); aspect-ratio: 4 / 5; height: auto; display: block; box-shadow: 0 15px 35px rgba(0,0,0,.3); }
.poster-studio-controls { display: flex; flex-direction: column; align-items: stretch; padding: clamp(50px,5vw,88px) clamp(24px,5vw,70px) 32px; }
.poster-studio h2 { margin: 45px 0 15px; font-size: clamp(52px,5.1vw,86px); line-height: .82; letter-spacing: -.08em; font-weight: 500; }
.poster-studio-controls > p:not(.eyebrow) { font-size: 18px; line-height: 1.35; max-width: 410px; margin-bottom: 32px; }
.poster-studio label,.poster-studio legend { margin: 12px 0; font: 12px/1.3 "Courier New",monospace; letter-spacing: .07em; }
.poster-studio fieldset { padding: 0; border: 0; margin: 24px 0 0; }
.poster-frame-choices { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.poster-frame-choices button { min-height: 45px; border: 1px solid #111; background: transparent; cursor: pointer; font: 12px/1 "Courier New",monospace; }
.poster-frame-choices button.active { background: #111; color: #fff; }
.poster-downloads { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 30px; }
.poster-downloads button { min-height: 50px; padding: 10px 18px; border: 1px solid #111; background: #111; color: #fff; text-align: left; cursor: pointer; font: 12px/1 "Courier New",monospace; letter-spacing: .06em; }
.poster-downloads button:last-child { background: transparent; color: #111; }
.poster-downloads button:disabled { opacity: .45; cursor: wait; }
#poster-message { min-height: 20px; margin: 10px 0 18px; font: 12px/1.4 "Courier New",monospace; color: #8e4b33; }
.poster-last-page { margin:12px 0 25px; padding:22px; background:#171514; color:#ece6dc; }
.poster-last-page[hidden] { display:none; }
.poster-last-page span,.poster-last-page small { font:11px/1.5 "Courier New",monospace; letter-spacing:.07em; }
.poster-last-page p { margin:25px 0; font-size:clamp(22px,2.5vw,36px); line-height:.99; letter-spacing:-.05em; }
.poster-studio-controls small { margin-top: auto; color: #66645e; font: 12px/1.45 "Courier New",monospace; }
#back-to-scent { align-self: flex-start; margin-top: 18px; padding: 0 0 5px; background: none; border: 0; border-bottom: 1px solid #111; cursor: pointer; font: 12px/1 "Courier New",monospace; }

@media (max-width: 1100px) {
  .hero-copy { grid-template-columns: 1fr 2fr; }
  .hero-links { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
  .edit-heading { grid-template-columns: 1fr 3fr; }
  .edit-heading > p:last-child { grid-column: 2; }
}
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-image { min-height: min(77svh,700px); }
  .issue-intro p { font-size: clamp(54px,9vw,110px); }
  .edit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .poster-section { min-height: 0; }
  .poster-preview { min-height: 570px; }
  .scent-spread { min-height: 0; }
  .spread-art { padding: 16px; }
  .spread-copy h2 { margin-top: 50px; }
}
@media (max-width: 700px) {
  .hero { grid-template-rows: 70svh auto; }
  .hero-image { min-height: 0; }
  .hero-frame-label span { display: none; }
  .hero-frame-label,.hero-frame-index { font-size: 10px; }
  .hero-copy { grid-template-columns: 1fr; gap: 21px; }
  .hero h1 { font-size: clamp(31px,8vw,57px); }
  .hero-links { grid-column: auto; flex-direction: row; }
  .issue-intro { grid-template-columns: 1fr; min-height: 0; }
  .issue-intro-left,.issue-intro-right { min-height: 260px; padding: 20px 16px; }
  .issue-intro-left { border-right: 0; border-bottom: 1px solid #111; }
  .issue-intro p { font-size: clamp(54px,12vw,85px); }
  .edit-section { padding: 72px 16px 35px; }
  .edit-heading { display: block; }
  .edit-heading h2 { margin: 28px 0 36px; font-size: clamp(67px,15vw,110px); }
  .edit-heading > p:last-child { max-width: 340px; }
  .edit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; }
  .edit-card { padding: 9px; }
  .edit-card-head { display: block; font-size: 10px; }
  .edit-card-head span:last-child { display: none; }
  .edit-card-image { margin: 7px 0 17px; aspect-ratio: 1/1.1; }
  .edit-card-name { font-size: clamp(28px,7vw,48px); }
  .edit-card-mood { min-height: 52px; font-size: 13px; }
  .edit-card-foot { font-size: 10px; margin-top: 15px; }
  .edit-end { gap: 16px; font-size: 11px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .scent-card { min-height: 500px; }
  .card-art { min-height: 0; }
  .poster-section { display: flex; flex-direction: column; }
  .poster-preview { min-height: 560px; }
  .poster-preview-title { font-size: clamp(58px,13vw,105px); }
  .poster-copy { padding: 70px 16px 75px; }
  .poster-copy h2 { font-size: clamp(75px,15vw,130px); }
  .experience-overlay { padding: 0; }
  .experience-dialog { width: 100%; max-height: 100svh; height: 100svh; }
  .scent-spread,.poster-studio { grid-template-columns: 1fr; }
  .spread-art { min-height: 440px; }
  .spread-art img { height: 350px; max-height: 350px; }
  .spread-copy { padding: 48px 18px 36px; }
  .spread-copy h2 { margin-top: 45px; font-size: clamp(68px,16vw,110px); }
  .spread-actions { grid-template-columns: 1fr; }
  .poster-studio-art { padding: 70px 18px 24px; }
  .poster-studio-art canvas { width: min(78%,380px); }
  .poster-studio-controls { padding: 40px 18px 35px; }
  .poster-studio h2 { margin-top: 30px; font-size: clamp(58px,13vw,85px); }
}
@media (max-width: 380px) {
  .hero-links { flex-direction: column; }
  .card-actions { grid-template-columns: 1fr; }
  .edit-card-foot span:first-child { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-afterimage { display: none; }
  .edit-card-image img { transition: none; }
}
