/* Trades layout ("copper"): the page is the business's own work order.
   Canary carbon-copy paper, ballpoint-blue ink, a red stamp for the call button, graphite ground, copper once. */

:root {
  --font-display: "Rokkitt", "Rockwell", Georgia, serif;
  --font-text: "Literata", Georgia, serif;
  --step-small: 0.9375rem;
  --step-body: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-head: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  --step-hero: clamp(2.75rem, 1.2rem + 5.4vw, 6rem);
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --section: clamp(5rem, 3rem + 7vw, 10rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body { background: var(--ground); color: var(--ground-ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.6; }
.display, .t-headline, .t-prices h2, .t-band h2, .t-about h2, .t-stub h2, .t-foot-phone, .t-foot-name {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.88;
}
::selection { background: var(--paper); color: var(--paper-ink); }

/* Buttons */
.t-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.5rem;
  background: var(--accent); color: var(--accent-ink); border-radius: 4px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none;
  transition: transform 0.2s var(--ease), background-color 0.2s ease;
}
.t-btn:hover { background: var(--accent-hover); transform: rotate(-1.5deg); }
.t-btn:active { transform: scale(0.97); }
.t-link { font-weight: 600; padding: 0.5rem 0; }
.t-link:hover { text-decoration-thickness: 2px; }

/* Paper: perforated edges made from round dots */
.t-order, .t-sheet, .t-stub-card { position: relative; background: var(--paper); color: var(--paper-ink); }
.t-order::before, .t-sheet::before, .t-stub-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: -5px; border-top: 10px dotted var(--ground);
}
::selection { background: var(--paper-ink); color: var(--paper); }

/* Hero */
.t-hero { position: relative; min-height: calc(100svh - 2.5rem); display: grid; place-items: center; padding: 4rem var(--gutter); overflow: hidden; }
.t-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.48) saturate(0.85); animation: t-settle 1.6s var(--ease) both; }
.t-order {
  width: min(54rem, 100%); padding: clamp(1.5rem, 1rem + 2.4vw, 3rem); transform: rotate(-1.2deg);
  display: grid; gap: 1.5rem; animation: t-drop 0.9s var(--ease) 0.15s both;
}
.t-order-name {
  display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.75rem; border-bottom: 3px solid var(--paper-ink);
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.25rem, 0.9rem + 1.6vw, 2.25rem); line-height: 1;
}
.t-headline { font-size: var(--step-hero); }
.t-order-facts { display: grid; gap: 0.25rem; }
.t-order-facts div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 0.375rem 0; border-bottom: 2px solid var(--paper-2); }
.t-order-facts dt { font-style: italic; color: var(--paper-muted); }
.t-order-facts dd { font-weight: 600; }
.t-intro { font-size: var(--step-lead); line-height: 1.45; max-width: 36ch; }
.t-order-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.5rem; }
.t-status { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.t-status::before { content: ""; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--paper-muted); }

/* Prices: tick the jobs */
.t-prices { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(2rem, 5vw, 5rem); padding: var(--section) var(--gutter); }
.t-prices-head { display: flex; flex-direction: column; gap: 1.5rem; align-self: start; position: sticky; top: 2rem; }
.t-prices h2 { font-size: var(--step-head); }
.t-prices-head p { font-size: var(--step-lead); line-height: 1.45; color: var(--ground-muted); max-width: 32ch; }
.t-prices-photo { aspect-ratio: 4 / 5; overflow: hidden; margin-top: 1rem; max-width: 26rem; }
.t-prices-photo img { width: 100%; height: 100%; object-fit: cover; }
.t-sheet { padding: clamp(1.25rem, 0.8rem + 2vw, 2.5rem); display: grid; gap: 2rem; }
.t-group { border: 0; margin: 0; padding: 0; display: grid; }
.t-group legend { padding: 0 0 0.5rem; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; line-height: 1; }
.t-line {
  display: grid; grid-template-columns: 1.75rem minmax(0, 1fr) auto; gap: 1rem; align-items: start;
  padding: 0.875rem 0.625rem; border-top: 2px solid var(--paper-2); cursor: pointer; transition: background-color 0.15s ease;
}
.t-line:hover { background: var(--paper-2); }
.t-line:has(input:checked) { background: var(--paper-2); }
.t-line input {
  appearance: none; margin: 0.15rem 0 0; width: 1.5rem; height: 1.5rem; border: 2.5px solid var(--paper-ink); border-radius: 3px;
  display: grid; place-items: center; cursor: pointer; transition: background-color 0.15s ease;
}
.t-line input::after { content: ""; width: 0.45rem; height: 0.8rem; border: solid var(--paper); border-width: 0 3px 3px 0; transform: translateY(-1px) rotate(45deg) scale(0); transition: transform 0.18s var(--ease); }
.t-line input:checked { background: var(--paper-ink); }
.t-line input:checked::after { transform: translateY(-1px) rotate(45deg) scale(1); }
.t-line input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.t-line-name { display: flex; flex-direction: column; font-weight: 600; font-size: 1.125rem; line-height: 1.35; }
.t-line-detail { font-weight: 400; font-style: italic; font-size: 1rem; color: var(--paper-muted); }
.t-line-price { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.t-total {
  position: sticky; bottom: 0.75rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; background: var(--paper-ink); color: var(--paper);
}
.t-total p { font-size: 1.125rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.t-total strong { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; }

/* Emergency band: the copper, once */
.t-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.5rem 3rem; padding: clamp(3.5rem, 2rem + 5vw, 7rem) var(--gutter); background: var(--band); color: var(--band-ink); }
.t-band h2 { font-size: var(--step-head); grid-column: 1 / -1; }
.t-band p { font-size: var(--step-lead); line-height: 1.45; max-width: 40ch; }
.t-band-phone { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.25rem, 1.2rem + 4.4vw, 5.5rem); line-height: 1; text-decoration: none; white-space: nowrap; }
.t-band-phone:hover { text-decoration: underline; text-decoration-thickness: 0.06em; }

/* About */
.t-about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 3rem clamp(2rem, 5vw, 5rem); padding: var(--section) var(--gutter); align-items: center; }
.t-about-photos { position: relative; min-height: 34rem; }
.t-about-photo { position: absolute; overflow: hidden; }
.t-about-photo img { width: 100%; height: 100%; object-fit: cover; }
.t-about-photo-1 { left: 0; top: 0; width: 72%; aspect-ratio: 4 / 5; }
.t-about-photo-2 { right: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; background: var(--paper); padding: 0.75rem; transform: rotate(3deg); }
.t-about-photo-2 img { mix-blend-mode: multiply; }
.t-about-text { display: grid; gap: 1.25rem; max-width: 38rem; }
.t-about h2 { font-size: var(--step-head); margin-bottom: 0.5rem; }
.t-stamps { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.5rem; }
.t-stamp {
  display: flex; flex-direction: column; align-items: center; padding: 0.75rem 1.25rem; border: 3px solid var(--paper); border-radius: 6px;
  color: var(--paper); transform: rotate(-3deg); text-align: center;
}
.t-stamp:nth-child(2) { transform: rotate(2deg); }
.t-stamp dd { font-family: var(--font-display); font-weight: 800; font-size: 2.75rem; line-height: 1; }
.t-stamp dt { font-size: 0.9375rem; }

/* Work photos at uneven sizes */
.t-work { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 1rem; padding: 0 var(--gutter); align-items: start; }
.t-work-photo { overflow: hidden; }
.t-work-photo:nth-child(1) { aspect-ratio: 4 / 3; }
.t-work-photo:nth-child(2) { aspect-ratio: 1; margin-top: 4rem; }
.t-work-photo:nth-child(3) { aspect-ratio: 3 / 4; margin-top: 1.5rem; }
.t-work-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.t-work-photo:hover img { transform: scale(1.03); }

/* Stub: hours and area */
.t-stub { padding: var(--section) var(--gutter); }
.t-stub-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 72rem; margin: 0 auto; }
.t-stub-card > div { padding: clamp(1.5rem, 1rem + 2.4vw, 3rem); display: grid; gap: 1.25rem; align-content: start; }
.t-stub-where { border-left: 10px dotted var(--ground); }
.t-stub h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.t-hours { width: 100%; font-variant-numeric: tabular-nums; }
.t-hours th, .t-hours td { padding: 0.625rem 0.75rem; text-align: left; font-weight: 400; border-top: 2px solid var(--paper-2); }
.t-hours td { text-align: right; }
.t-hours tr.is-today { background: var(--paper-ink); color: var(--paper); }
.t-hours tr.is-today th, .t-hours tr.is-today td { font-weight: 600; }
.t-note { font-style: italic; color: var(--paper-muted); }
.t-address { font-size: var(--step-lead); font-weight: 600; line-height: 1.35; }
.t-towns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.t-towns li { padding: 0.25rem 0.75rem; background: var(--paper-2); border-radius: 4px; }

/* Footer: the back of the order */
.t-foot { padding: var(--section) var(--gutter) 2rem; display: grid; gap: 1.5rem; overflow: hidden; }
.t-foot-ask { font-style: italic; font-size: var(--step-lead); color: var(--ground-muted); }
.t-foot-phone { font-size: clamp(3rem, 1rem + 9vw, 10rem); color: var(--paper); text-decoration: none; white-space: nowrap; }
.t-foot-phone:hover { text-decoration: underline; text-decoration-thickness: 0.05em; text-underline-offset: 0.1em; }
.t-foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; font-size: var(--step-lead); }
.t-foot-name { font-size: clamp(2rem, 1rem + 4vw, 4.5rem); color: var(--ground-muted); margin-top: 3rem; }
.t-foot-small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 3rem; font-size: var(--step-small); color: var(--ground-muted); }
.t-foot-small .credits { max-width: 72ch; }

@keyframes t-drop { from { opacity: 0; transform: translateY(2.5rem) rotate(-4deg); } to { opacity: 1; transform: rotate(-1.2deg); } }
@keyframes t-settle { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Back-to-top button colours */
:root { --to-top-bg: var(--paper-ink); --to-top-ink: var(--paper); }

@media (max-width: 900px) {
  .t-prices, .t-about, .t-stub-card { grid-template-columns: 1fr; }
  .t-prices-head { position: static; }
  .t-prices-photo { display: none; }
  .t-about-photos { min-height: 0; aspect-ratio: 1; }
  .t-stub-where { border-left: 0; border-top: 10px dotted var(--ground); }
  .t-band { grid-template-columns: 1fr; }
  .t-work { grid-template-columns: 1fr 1fr; }
  .t-work-photo:nth-child(3) { display: none; }
}
@media (max-width: 560px) {
  .t-hero { padding: 42vw 0.75rem 1.5rem; min-height: auto; place-items: end center; }
  .t-order { transform: none; animation-name: t-drop-flat; }
  .t-order-facts div { grid-template-columns: 4.5rem 1fr; }
  .t-order-foot .t-btn { width: 100%; order: -1; }
  .t-line { grid-template-columns: 1.5rem minmax(0, 1fr); }
  .t-line-price { grid-column: 2; }
  .t-total { padding: 0.75rem; margin-right: 3.75rem; }
  .t-total .t-btn { width: 100%; min-height: 3rem; }
  .t-wide { display: none; }
  .t-line-name { font-size: 1.0625rem; }
  .t-stamps { gap: 0.75rem; }
  .t-stamp { padding: 0.5rem 0.875rem; }
  .t-stamp dd { font-size: 2rem; }
  .t-work-photo:nth-child(2) { margin-top: 2rem; }
  .t-band-phone { white-space: normal; }
  .t-foot-phone { font-size: 13vw; }
}
@keyframes t-drop-flat { from { opacity: 0; transform: translateY(2rem); } to { opacity: 1; transform: none; } }
