/* Tampo's landing — "Atelier": limestone paper, warm ink, oak for the small
   labels and one deep azulejo blue for the closing band. Instrument Serif
   (roman + italic, one weight) over Hanken Grotesk. Square corners, hairline
   rules, generous space; the photographs carry the colour.
   A custom landing does not load the kit's stylesheet, so this file carries
   its own reset. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-style: italic; }

:root {
  --paper: #f4efe7;
  --paper-2: #ebe3d6;
  --ink: #1c1915;
  --ink-2: #463e35;
  --muted: #6a5f52;
  --line: #d9cebd;
  --oak: #85603c;
  --oak-soft: #d6bc98;
  --blue: #1b2f46;
  --cream: #f4ede1;
  --display: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 720px) { :root { --gutter: 40px; } }
@media (min-width: 1200px) { :root { --gutter: 56px; } }

body.tampo {
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; text-wrap: balance; }
h1 em, h2 em, .statement em { color: var(--ink-2); }
h2 em { display: block; }
h2 { font-size: clamp(38px, 5.6vw, 76px); line-height: 1.02; max-width: 15ch; }
h3 { font-size: 26px; line-height: 1.15; }

/* small tracked labels, with an optional section index */
.label { display: flex; align-items: baseline; gap: 14px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--oak); margin-bottom: 28px; }
.idx { font-family: var(--display); font-size: 15px; letter-spacing: 0; color: var(--muted); padding-right: 14px; border-right: 1px solid var(--line); }
.sec-lede { color: var(--ink-2); max-width: 46ch; }
.fine { font-size: 13px; color: var(--muted); margin-top: 28px; }

/* buttons: square, quiet, an arrow that moves on hover */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-weight: 500; font-size: 15px; letter-spacing: .02em; text-decoration: none; padding: 18px 28px; border: 1px solid transparent; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-sm { padding: 10px 18px; font-size: 13px; letter-spacing: .06em; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: #3a332b; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: #fff; }
.link { font-size: 15px; font-weight: 500; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--ink); }
.link:hover { color: var(--oak); border-color: var(--oak); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--oak); outline-offset: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 30; background: var(--ink); color: var(--cream); padding: 10px 16px; }
.skip:focus { left: 8px; }

/* nav */
.tnav { position: sticky; top: 0; z-index: 20; background: rgb(244 239 231 / .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.tnav.is-solid { border-bottom-color: var(--line); }
.tnav-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { font-family: var(--display); font-size: 30px; line-height: 1; text-decoration: none; letter-spacing: -0.01em; }
.tnav-links { display: none; gap: 36px; margin-left: auto; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.tnav-links a { text-decoration: none; color: var(--ink-2); padding: 4px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease), color .2s; }
.tnav-links a:hover { color: var(--ink); background-size: 100% 1px; }
.tnav .btn { margin-left: auto; }
@media (min-width: 960px) { .tnav-links { display: flex; } .tnav .btn { margin-left: 0; } }

/* image frames: a warm tone shows while a picture loads; the picture eases
   in from a slight zoom when its block is revealed */
.frame { overflow: hidden; background: var(--paper-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 14px; letter-spacing: .02em; }

/* hero: type on the left, the photograph running to the right edge */
.hero { display: grid; gap: 40px; padding: 32px 0 0; }
.hero-copy { padding: 0 var(--gutter); display: flex; flex-direction: column; }
.hero h1 { font-size: clamp(48px, 6.4vw, 116px); line-height: .94; letter-spacing: -0.02em; }
.hero h1 span, .hero h1 em { display: block; }
.hero-foot { margin-top: 36px; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 44ch; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 32px; }
.note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-img .frame img { aspect-ratio: 4 / 5; }
.hero-img figcaption { padding: 0 var(--gutter); }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; padding: 0; height: calc(100svh - 68px); min-height: 680px; max-height: 1080px; }
  .hero-copy { padding: 56px 64px 56px max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))); justify-content: space-between; }
  .hero-img { display: flex; flex-direction: column; min-height: 0; }
  .hero-img .frame { flex: 1; min-height: 0; position: relative; }
  .hero-img .frame img { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero-img figcaption { padding: 0 var(--gutter) 20px 0; margin-top: 12px; text-align: right; }
}

/* intro: one statement, then the four facts as a ruled row */
.intro { padding-top: 120px; padding-bottom: 40px; }
.statement { font-family: var(--display); font-size: clamp(30px, 4.2vw, 58px); line-height: 1.12; letter-spacing: -0.01em; max-width: 22ch; }
.statement em { display: block; }
@media (min-width: 960px) {
  .intro { display: grid; grid-template-columns: 1fr 3fr; column-gap: 40px; }
  .intro .label { padding-top: 18px; }
  .intro .facts { grid-column: 1 / -1; }
}
.facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 88px; border-top: 1px solid var(--ink); }
.facts div { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--display); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; }
.facts dd { font-size: 14px; color: var(--muted); margin-top: 6px; max-width: 22ch; }
@media (min-width: 820px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts div { padding: 28px 28px 0; border-bottom: 0; border-left: 1px solid var(--line); }
  .facts div:first-child { border-left: 0; padding-left: 0; }
}

/* section heads */
.sec-head { margin-bottom: 64px; }
.sec-head-split { display: grid; gap: 28px; align-items: end; }
@media (min-width: 960px) { .sec-head-split { grid-template-columns: 1.4fr 1fr; gap: 64px; } .sec-head-split .sec-lede { justify-self: end; } }

/* how: four ruled columns with large italic numerals */
.how { padding-top: 140px; padding-bottom: 40px; }
.steps { display: grid; gap: 48px; counter-reset: step; }
.steps li { border-top: 1px solid var(--ink); padding-top: 22px; }
.step-n { display: block; font-family: var(--display); font-style: italic; font-size: clamp(48px, 5vw, 64px); line-height: 1; color: var(--oak); margin-bottom: 28px; }
.steps h3 { margin-bottom: 12px; }
.steps p { color: var(--ink-2); font-size: 16px; max-width: 34ch; }
@media (min-width: 720px) { .steps { grid-template-columns: 1fr 1fr; gap: 56px 40px; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

/* gallery: an offset pair, the tall one dropped below the wide one */
.gallery { padding-top: 140px; padding-bottom: 40px; }
.pair { display: grid; gap: 48px; }
.tile figcaption { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.tile figcaption span:first-child { font-family: var(--display); font-size: 20px; color: var(--ink); letter-spacing: 0; }
.tile figcaption span:last-child { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; align-self: center; }
.tile-wide .frame img { aspect-ratio: 4 / 3; }
.tile-tall .frame img { aspect-ratio: 3 / 4; }
@media (min-width: 820px) {
  .pair { grid-template-columns: 7fr 4fr; gap: 40px; align-items: start; }
  .tile-tall { margin-top: 160px; }
}
@media (min-width: 1200px) { .pair { gap: 72px; } }

/* craft: photograph and text on a darker band of paper */
.craft { background: var(--paper-2); margin-top: 140px; padding: 120px 0; }
.craft .frame { background: #e1d7c7; }
.craft-in { display: grid; gap: 48px; align-items: center; }
.craft-img .frame img { aspect-ratio: 4 / 5; }
.craft-copy p:not(.label) { color: var(--ink-2); margin-top: 22px; max-width: 46ch; }
.craft-copy h2 { margin-bottom: 18px; }
@media (min-width: 960px) {
  .craft-in { grid-template-columns: 5fr 6fr; gap: 0; }
  .craft-copy { padding-left: 12%; }
}

/* before / after: the one full-bleed photograph */
.before { padding-top: 140px; }
.before-img { position: relative; }
.before-img .frame img { aspect-ratio: 16 / 9; }
.ba { position: absolute; inset: 0 0 auto; display: flex; justify-content: space-between; margin: 0; padding: 20px var(--gutter); pointer-events: none; }
.ba span { background: rgb(28 25 21 / .72); color: var(--cream); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: 7px 12px; }

/* price: the dark band */
.price { background: var(--ink); color: var(--cream); padding: 120px 0; }
.price .label { color: var(--oak-soft); }
.price .idx { color: #a99a86; border-color: rgb(244 237 225 / .2); }
.price h2 { max-width: 14ch; }
.price-in { display: grid; gap: 64px; }
.price-big { font-family: var(--display); line-height: .9; margin: 48px 0 28px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.price-big small { font-family: var(--display); font-style: italic; font-size: clamp(28px, 3vw, 40px); color: var(--oak-soft); }
.price-big span { font-size: clamp(76px, 12vw, 176px); letter-spacing: -0.03em; }
.price-body { color: #d6ccbc; max-width: 48ch; }
.price-side .label { margin-bottom: 0; padding-bottom: 16px; }
.price-list { margin-bottom: 40px; }
.price-list li { border-top: 1px solid rgb(244 237 225 / .2); padding: 18px 0; display: flex; gap: 16px; font-size: 17px; }
.price-list li::before { content: '—'; color: var(--oak-soft); }
.price-list li:last-child { border-bottom: 1px solid rgb(244 237 225 / .2); }
.price .btn-cream { width: 100%; }
@media (min-width: 960px) { .price-in { grid-template-columns: 1.5fr 1fr; gap: 96px; align-items: end; } }

/* also: text on the left, the wardrobe on the right */
.also { display: grid; gap: 48px; padding-top: 140px; padding-bottom: 40px; align-items: center; }
.also-img .frame img { aspect-ratio: 4 / 5; }
.also-copy > p:not(.label) { color: var(--ink-2); margin-top: 22px; max-width: 40ch; }
.also-list { margin-top: 40px; max-width: 520px; }
.also-list li { border-top: 1px solid var(--line); padding: 20px 0; }
.also-list li:last-child { border-bottom: 1px solid var(--line); }
.also-list h3 { font-size: 24px; }
.also-list p { color: var(--muted); font-size: 15px; margin-top: 4px; }
@media (min-width: 960px) { .also { grid-template-columns: 6fr 5fr; gap: 0; } .also-copy { padding-right: 12%; } }

/* area: the places as a line of type */
.area { padding-top: 140px; padding-bottom: 40px; }
.area-in { border-top: 1px solid var(--ink); padding-top: 28px; }
.places { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 48px 0 28px; font-family: var(--display); font-size: clamp(28px, 3.6vw, 48px); line-height: 1.2; }
.places li:not(:last-child)::after { content: '·'; color: var(--oak); padding: 0 .35em; }

/* faq: heading on the left, the list on the right */
.faq { display: grid; gap: 40px; padding-top: 140px; padding-bottom: 140px; }
.faq h2 { font-size: clamp(38px, 4.4vw, 60px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 44px 24px 0; font-family: var(--display); font-size: 23px; line-height: 1.25; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 26px; max-width: 60ch; }
@media (min-width: 960px) { .faq { grid-template-columns: 1fr 1.6fr; gap: 64px; } .faq-head { position: sticky; top: 108px; align-self: start; } }

/* closing: azulejo blue */
.closing { background: var(--blue); color: var(--cream); padding: 140px 0; text-align: center; }
.closing-in { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.closing h2 { max-width: 18ch; font-size: clamp(40px, 6vw, 88px); }
.closing h2 em { display: block; color: #c4d0de; }
.closing p { color: #c9d3de; max-width: 46ch; }
.closing .btn { margin-top: 12px; }
.closing-mail { font-size: 15px; }
.closing-mail a { color: var(--cream); }

/* footer: links, then the name set large */
.foot { padding: 96px 0 32px; font-size: 14px; color: var(--muted); }
.foot-top { display: grid; gap: 40px; padding-bottom: 56px; }
.foot-tag { font-family: var(--display); font-size: 26px; line-height: 1.2; color: var(--ink); max-width: 22ch; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.foot-nav { display: flex; flex-direction: column; gap: 10px; }
.foot-nav a { text-decoration: none; color: var(--ink-2); }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; }
.foot-mark { font-family: var(--display); font-size: clamp(120px, 30vw, 480px); line-height: 1.18; letter-spacing: -0.04em; color: var(--ink); margin-top: -.12em; }
.foot-end { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-links { display: flex; gap: 24px; }
@media (min-width: 820px) { .foot-top { grid-template-columns: 1fr 1fr; } }

/* motion: only with the `motion` class (JS on, reduced motion not asked) */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion [data-reveal] .frame img { transform: scale(1.06); transition: transform 1.6s var(--ease); }
.motion [data-reveal].is-in .frame img { transform: none; }
.motion .hero h1[data-reveal] { transition-delay: .1s; }
.motion .hero-foot[data-reveal] { transition-delay: .25s; }
.motion .steps li:nth-child(2) { transition-delay: .08s; }
.motion .steps li:nth-child(3) { transition-delay: .16s; }
.motion .steps li:nth-child(4) { transition-delay: .24s; }
.motion .tile-tall[data-reveal] { transition-delay: .12s; }
.motion .hero-img .frame img { animation: settle 1.8s var(--ease) both; }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
