/* Tampo's landing. Warm white paper, near-black ink, body copy in ink (not
   grey), one azulejo blue used rarely, oak only on the worktop edge.
   Gloock (display, one weight) over Schibsted Grotesk.
   Brand gesture: `.slab`, a dark worktop with an oak edge. Three uses only.
   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: 76px; }
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; }

:root {
  --paper: #f7f3ec;
  --stone: #ebe4d8;
  --ink: #181513;
  --text: #2a2521;
  --soft: #5b5247;
  --rule: #d3c9ba;
  --oak: #b8834f;
  --blue: #1f3d99;
  --cream: #f7f1e6;
  --display: 'Gloock', Georgia, serif;
  --sans: 'Schibsted Grotesk', system-ui, sans-serif;
  --gutter: 16px;
}
@media (min-width: 720px) { :root { --gutter: 40px; } }
@media (min-width: 1280px) { :root { --gutter: 64px; } }

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

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

/* type: two display sizes, two text sizes */
h1, h2 { font-family: var(--display); font-weight: 400; color: var(--ink); letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.8vw, 96px); line-height: 1.02; }
h2 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.05; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.h-small { font-family: var(--sans); font-size: 18px; font-weight: 600; letter-spacing: 0; }
.big-text { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--text); max-width: 34em; }
.small { font-size: 14px; color: var(--soft); }
.caption { font-size: 14px; color: var(--soft); }

/* buttons: square, solid */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; text-decoration: none; padding: 17px 26px; border: 0; transition: background-color .2s, color .2s; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--blue); }
.btn-paper { background: var(--cream); color: var(--ink); }
.btn-paper:hover { background: #fff; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.start a:focus-visible, .bar a:focus-visible { outline-color: var(--cream); }

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

/* the worktop: oak edge on top, dark slab below */
.slab { height: 20px; background: var(--ink); border-top: 4px solid var(--oak); }

/* nav */
.tnav { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.tnav-in { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { font-family: var(--display); font-size: 28px; line-height: 1; text-decoration: none; color: var(--ink); }
.tnav-links { display: none; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; }
.tnav-links a { text-decoration: none; color: var(--text); }
.tnav-links a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 6px; }
.tnav .btn { margin-left: auto; }
@media (min-width: 960px) { .tnav-links { display: flex; } .tnav .btn { margin-left: 0; } }

/* hero: the line and the action, then the photograph edge to edge on the worktop */
.hero-head { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 36px; }
.hero-side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 30em; }
.hero-side p:first-child { font-size: 18px; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 55%; background: var(--stone); }
.slab-hero { height: auto; padding: 18px 0; color: var(--cream); }
.counter { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.counter li { font-size: 14px; line-height: 1.35; color: #d9d0c2; }
.counter b { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--cream); }
.hero-caption { padding-top: 12px; }
@media (min-width: 820px) {
  .counter { grid-template-columns: repeat(4, 1fr); }
  .counter b { font-size: 28px; }
  .counter li { font-size: 15px; }
}
@media (min-width: 960px) {
  .hero-head { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 56px; align-items: end; padding-top: 56px; padding-bottom: 48px; }
  .hero-photo img { aspect-ratio: auto; height: clamp(440px, 68vh, 820px); object-position: 50% 58%; }
  .hero-caption { text-align: right; }
}

/* proposal: what arrives, set as a document */
.proposal { display: grid; gap: 40px; padding-top: 112px; padding-bottom: 112px; }
.proposal-copy .big-text { margin-top: 24px; }
.sheet { background: #fffdf8; border: 1px solid var(--rule); padding: 24px 20px; box-shadow: 0 1px 0 var(--rule), 0 24px 48px -32px rgb(24 21 19 / .35); }
.sheet-head { display: flex; justify-content: space-between; font-size: 14px; color: var(--soft); padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.sheet-head span:first-child { font-family: var(--display); font-size: 22px; color: var(--ink); line-height: 1; }
.sheet dl > div { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.sheet dt { font-weight: 600; color: var(--ink); }
.sheet-foot { padding-top: 18px; font-size: 15px; color: var(--blue); font-weight: 500; }
@media (min-width: 600px) { .sheet { padding: 32px 36px; } .sheet dl > div { grid-template-columns: 11em 1fr; gap: 24px; } }
@media (min-width: 960px) { .proposal { grid-template-columns: 5fr 6fr; gap: 80px; align-items: center; } }

/* how: a timeline told in time, not in numbers */
.how { background: var(--stone); padding: 96px 0; }
.timeline { display: grid; margin-top: 48px; }
.timeline li { position: relative; padding: 0 0 36px 28px; border-left: 2px solid var(--ink); }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; background: var(--stone); border: 2px solid var(--ink); border-radius: 50%; }
.timeline li:first-child::before { background: var(--ink); }
.when { font-size: 14px; font-weight: 600; color: var(--blue); margin-bottom: 6px; }
.timeline h3 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.15; margin-bottom: 10px; }
.timeline li > p:last-child { max-width: 30em; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .timeline li { padding: 32px 32px 0 0; border-left: 0; border-top: 2px solid var(--ink); }
  .timeline li:last-child { border-top-color: var(--ink); }
  .timeline li::before { left: 0; top: -7px; }
}

/* work: photographs at different sizes */
.work { padding-top: 112px; padding-bottom: 40px; }
.work-head { display: grid; gap: 20px; margin-bottom: 48px; }
.work-grid { display: grid; gap: 40px; }
.shot img { width: 100%; object-fit: cover; background: var(--stone); }
.shot-tall img { aspect-ratio: 3 / 4; }
.shot-wide img { aspect-ratio: 4 / 3; }
.shot figcaption { font-size: 15px; color: var(--soft); margin-top: 12px; max-width: 34em; }
.shot figcaption b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.work-note { margin-top: 32px; }
@media (min-width: 900px) {
  .work-head { grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
  .work-grid { grid-template-columns: 5fr 7fr; gap: 48px; align-items: end; }
  .shot-wide { padding-bottom: 64px; }
}

/* materials: swatches drawn in CSS */
.materials { padding-top: 72px; padding-bottom: 112px; }
.swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; margin-top: 24px; }
.swatches li { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--soft); }
.swatches b { color: var(--ink); font-weight: 600; font-size: 15px; margin-top: 12px; }
.sw { display: block; aspect-ratio: 1; border-bottom: 6px solid rgb(0 0 0 / .14); }
.sw { background-color: var(--stone); background-repeat: no-repeat; }
/* five swatches are crops of the photographs on this page; brass is drawn */
.sw-carvalho { background-image: url('/gallery/06-roupeiro.jpg'); background-size: 700% auto; background-position: 82% 40%; }
.sw-quartzo { background-image: url('/gallery/02-cascais-ilha.jpg'); background-size: 1100% auto; background-position: 45% 63%; }
.sw-lacado { background-image: url('/gallery/03-alfama-azul.jpg'); background-size: 600% auto; background-position: 40% 66%; }
.sw-latao { background: repeating-linear-gradient(90deg, rgb(255 244 210 / .12) 0 1px, transparent 1px 3px), linear-gradient(160deg, #8c6a2d 0%, #c9a557 35%, #a8843f 60%, #d4b56c 85%, #93712f 100%); }
.sw-azulejo { background-image: url('/gallery/03-alfama-azul.jpg'); background-size: 500% auto; background-position: 18% 40%; }
.sw-terrazzo { background-image: url('/gallery/01-lisboa-carvalho.jpg'); background-size: 700% auto; background-position: 45% 92%; }
@media (min-width: 720px) { .swatches { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .swatches { grid-template-columns: repeat(6, 1fr); gap: 20px; } }

/* craft: photograph edge to edge on one side, text on ink */
.craft { display: grid; background: var(--ink); color: #e6ded1; }
.craft-photo img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; }
.craft-copy { padding: 56px var(--gutter) 64px; align-self: center; max-width: 40em; }
.craft h2 { color: var(--cream); margin-bottom: 28px; }
.craft-copy p + p { margin-top: 18px; }
.craft-copy p:first-of-type { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--cream); }
@media (min-width: 900px) {
  .craft { grid-template-columns: 1fr 1fr; }
  .craft-photo img { aspect-ratio: auto; min-height: 640px; max-height: 900px; }
  .craft-copy { padding: 80px var(--gutter) 80px 72px; }
}

/* before / after: the two halves of one photograph, side by side */
.before { padding-top: 112px; padding-bottom: 40px; }
.before-head { display: grid; gap: 20px; margin-bottom: 40px; }
.before-head p { max-width: 34em; }
.ba { display: grid; gap: 20px; }
@media (min-width: 600px) { .ba { grid-template-columns: 1fr 1fr; gap: 10px; } }
/* the image is drawn twice its frame's width; each frame shows one half */
.ba .crop { position: relative; overflow: hidden; aspect-ratio: 8 / 9; background: var(--stone); }
.ba .crop img { position: absolute; top: 0; left: 0; width: 200%; max-width: none; height: 100%; object-fit: cover; }
.ba-after .crop img { left: -100%; }
.ba-half figcaption { font-family: var(--display); font-size: clamp(22px, 2.4vw, 32px); color: var(--ink); margin-top: 10px; }
@media (min-width: 900px) { .before-head { grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; } .ba { gap: 16px; } .ba .crop { aspect-ratio: 1; } }

/* price: a price list that sits on the worktop */
.price { padding-top: 112px; padding-bottom: 0; }
.price-table { margin-top: 40px; border-top: 2px solid var(--ink); }
.price-row { display: grid; gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.price-row:last-child { border-bottom: 0; }
.amount { font-family: var(--display); font-size: clamp(34px, 4vw, 56px); line-height: 1; color: var(--ink); }
.price-row:last-child .amount { font-size: clamp(48px, 7vw, 104px); }
.amount small { font-family: var(--sans); font-size: 18px; font-weight: 500; color: var(--soft); margin-right: 10px; }
.amount small:empty { display: none; }
.price-row h3 { margin-bottom: 4px; }
.price-row p:not(.amount) { max-width: 36em; }
.price .slab { margin-top: 8px; }
@media (min-width: 820px) { .price-row { grid-template-columns: 5fr 6fr; gap: 48px; align-items: baseline; padding: 32px 0; } }

/* also: a smaller photograph and a short note */
.also { padding: 112px 0; }
.also-in { display: grid; gap: 32px; align-items: center; }
.also-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 50%; background: var(--stone); }
.also-photo figcaption { margin-top: 12px; }
.also-copy .big-text { margin-top: 20px; }
@media (min-width: 900px) { .also-in { grid-template-columns: 4fr 1fr 6fr; } .also-photo { grid-column: 1; } .also-copy { grid-column: 3; } }

/* faq */
.faq { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 112px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 18px; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 15px; font-size: 26px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding-bottom: 24px; max-width: 40em; }
@media (min-width: 960px) { .faq { grid-template-columns: 4fr 7fr; gap: 64px; } }

/* start: the contact block, on ink, under the worktop */
.start { background: var(--ink); color: #ddd4c6; }
.start .slab { border-top-color: var(--oak); background: #0f0d0c; }
.start-in { display: grid; gap: 56px; padding-top: 88px; padding-bottom: 96px; }
.start h2 { color: var(--cream); }
.mail { display: inline-block; margin-top: 20px; font-family: var(--display); font-size: clamp(36px, 7vw, 104px); line-height: 1.05; color: var(--cream); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .14em; text-decoration-color: var(--oak); word-break: break-word; }
.mail:hover { text-decoration-color: var(--cream); }
.start-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 36px; }
.start .small { color: #b9ae9f; }
.start h3 { color: var(--cream); font-size: 16px; margin-bottom: 12px; }
.start h3 ~ h3 { margin-top: 36px; }
.checklist li { padding: 10px 0 10px 28px; border-top: 1px solid rgb(247 241 230 / .16); position: relative; }
.checklist li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--oak); border-bottom: 2px solid var(--oak); transform: rotate(-45deg); }
.places { color: var(--cream); font-size: 18px; margin-bottom: 8px; }
.places span:not(:last-child)::after { content: ', '; }
@media (min-width: 960px) { .start-in { grid-template-columns: 7fr 4fr; gap: 80px; align-items: end; } }

/* footer */
.foot { background: var(--ink); color: #b9ae9f; font-size: 14px; border-top: 1px solid rgb(247 241 230 / .14); }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.foot b { font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--cream); margin-right: 8px; }
.foot-links { display: flex; gap: 20px; }

/* mobile bar: scripted pages only, after the hero, never over the contact block */
.bar { display: none; }
@media (max-width: 719px) {
  .js .bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--cream); border-top: 3px solid var(--oak); font-size: 14px; font-weight: 500; transition: transform .25s ease, visibility .25s; }
  .js .bar.is-early, .js .bar.is-hidden { transform: translateY(110%); visibility: hidden; }
  .js .foot { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar { transition: none !important; }
}
