/* The Print Shed — website styles
   Colours, type and spacing come from The Print Shed design system.
   Change a colour here and it changes across the whole site. */

:root {
  /* Colour */
  --surface: #f6f1e7;   /* cream page background */
  --ink: #2b2a28;       /* charcoal text and dark blocks */
  --muted: #6b7a7a;     /* secondary text, 24px+ only */
  --roof-1: #c1642f;    /* roof ramp: darkest (peak) */
  --roof-2: #c96e39;
  --roof-3: #d17842;
  --roof-4: #d9824c;
  --roof-5: #e08c56;    /* standard orange behind ink text */
  --roof-6: #e7965f;
  --roof-7: #eea069;
  --roof-8: #f5aa73;
  --roof-9: #fcb47d;    /* lightest (eaves): tinted panels */

  /* Type */
  --font-display: "Arial Black", Arial, sans-serif;
  --font-sans: Arial, Helvetica, sans-serif;

  /* Spacing: one roof layer = 14px */
  --space-1: 7px;
  --space-2: 14px;
  --space-3: 28px;
  --space-4: 56px;

  /* Shape */
  --radius-none: 0;
  --radius-sm: 3px;

  --page-max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--roof-1); }

:focus-visible { outline: 3px solid var(--roof-1); outline-offset: 3px; }

.skip-link {
  position: absolute; left: var(--space-2); top: -60px;
  background: var(--ink); color: var(--surface); padding: var(--space-1) var(--space-2);
  font-weight: 700; z-index: 10;
}
.skip-link:focus { top: var(--space-2); }

.wrap { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--space-3); }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 900; margin: 0; }
.h-hero { font-size: 64px; line-height: 1; }
h1, .h-page { font-size: 42px; line-height: 1.1; }
h2 { font-size: 28px; line-height: 1.2; }
h3 { font-size: 22px; line-height: 1.25; }
@media (max-width: 700px) {
  .h-hero { font-size: 42px; line-height: 1.05; }
  h1, .h-page { font-size: 34px; }
  h2 { font-size: 24px; }
}

.tagline { font-size: 20px; line-height: 28px; letter-spacing: 1.5px; margin: var(--space-2) 0 0; }
.lede { font-size: 18px; line-height: 28px; max-width: 34em; }
.small { font-size: 14px; line-height: 20px; }
p { margin: 0 0 var(--space-2); }

/* ---------- Header ---------- */

.site-header { border-bottom: 2px solid var(--ink); background: var(--surface); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-2); min-height: 84px;
}
.brand { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; }
.brand img { width: 46px; height: auto; }
.brand span { font-family: var(--font-display); font-weight: 900; font-size: 22px; line-height: 1; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-1); }
.nav a {
  display: block; padding: var(--space-1) var(--space-2);
  font-weight: 700; text-decoration: none;
}
.nav a:hover { background: var(--roof-9); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--surface); }

.nav-toggle {
  display: none; align-items: center; gap: var(--space-1);
  background: transparent; border: 0; box-shadow: inset 0 0 0 2px var(--ink);
  color: var(--ink); font: 700 16px/20px var(--font-sans);
  padding: var(--space-1) var(--space-2); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; }
  .nav.open { display: block; }
  .site-header .wrap { flex-wrap: wrap; padding-top: var(--space-2); padding-bottom: var(--space-2); }
  .nav ul { flex-direction: column; gap: 0; padding-bottom: var(--space-1); }
  .nav a { padding: var(--space-2); border-top: 2px solid var(--ink); }
}

/* ---------- Buttons & badges ---------- */

.btn {
  display: inline-flex; align-items: center; gap: var(--space-1);
  border: 0; border-radius: var(--radius-none);
  font: 700 16px/20px var(--font-sans);
  padding: var(--space-2) var(--space-3);
  cursor: pointer; text-decoration: none;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--ink); color: var(--surface); }
.btn-primary:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--surface); }
.btn-accent { background: var(--roof-5); color: var(--ink); }
.btn-accent:hover { background: var(--roof-4); }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-quiet:hover { background: var(--roof-9); }
.btn-sm { font-size: 14px; padding: var(--space-1) var(--space-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }

.badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  height: 28px; padding: 0 var(--space-1);
  border-radius: var(--radius-sm);
  font: 700 14px/1 var(--font-sans);
}
.badge-tint { background: var(--roof-9); color: var(--ink); }
.badge-accent { background: var(--roof-5); color: var(--ink); }
.badge-dark { background: var(--ink); color: var(--surface); }

.icon { width: 24px; height: 24px; flex: none; }

/* ---------- Roof-layer motif ---------- */

.layers { display: flex; flex-direction: column; align-items: center; }
.layers i { display: block; height: var(--space-2); }
.layers i:nth-child(1) { width: 10%; background: var(--roof-1); }
.layers i:nth-child(2) { width: 20%; background: var(--roof-2); }
.layers i:nth-child(3) { width: 30%; background: var(--roof-3); }
.layers i:nth-child(4) { width: 40%; background: var(--roof-4); }
.layers i:nth-child(5) { width: 50%; background: var(--roof-5); }
.layers i:nth-child(6) { width: 60%; background: var(--roof-6); }
.layers i:nth-child(7) { width: 70%; background: var(--roof-7); }
.layers i:nth-child(8) { width: 80%; background: var(--roof-8); }
.layers i:nth-child(9) { width: 90%; background: var(--roof-9); }

.card-layers { display: flex; flex-direction: column; }
.card-layers i { display: block; height: var(--space-1); }
.card-layers i:nth-child(1) { width: 40%; background: var(--roof-1); }
.card-layers i:nth-child(2) { width: 70%; background: var(--roof-3); }
.card-layers i:nth-child(3) { width: 100%; background: var(--roof-5); }

/* ---------- Sections ---------- */

.section { padding: var(--space-4) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-3); }
.section-head p { margin: var(--space-1) 0 0; }
.band-dark { background: var(--ink); color: var(--surface); }
.band-dark a { color: var(--surface); }
.band-dark .btn-accent { color: var(--ink); }
.band-tint { background: var(--roof-9); }

/* Hero */
.hero { padding: var(--space-4) 0; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-4); align-items: center; }
.hero-art { position: relative; }
.hero-art .layers i { height: 28px; }
.hero-art .walls { background: var(--ink); height: 168px; width: 80%; margin: 0 auto; position: relative; }
.hero-art .door { position: absolute; left: 50%; bottom: 0; width: 22%; height: 66%; transform: translateX(-50%); background: var(--surface); }
.hero-art .win { position: absolute; top: 20%; width: 13%; aspect-ratio: 1; background: var(--surface); border-radius: var(--radius-sm); }
.hero-art .win.l { left: 10%; } .hero-art .win.r { right: 10%; }
.hero-art .ground { height: var(--space-1); width: 94%; margin: 0 auto; background: var(--ink); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: var(--space-3); }
  .hero-art { max-width: 340px; width: 100%; }
  .hero-art .layers i { height: 18px; }
  .hero-art .walls { height: 110px; }
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; gap: var(--space-2); } }

/* Cards */
.card { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); display: flex; flex-direction: column; }
.card-tint { background: var(--roof-9); box-shadow: none; }
.card-dark { background: var(--ink); color: var(--surface); box-shadow: none; }
.card-body { padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-1); flex: 1; }
.card-body h3 { margin-bottom: var(--space-1); }
.card-body p { margin: 0; }
.card-foot { margin-top: auto; padding-top: var(--space-2); display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }

.category-card { text-decoration: none; }
.category-card .card-body { gap: var(--space-2); }
.category-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--roof-1); }
.category-card .card-body > .icon { width: 40px; height: 40px; }

/* Steps */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; flex-direction: column; gap: var(--space-1); }
.steps .num {
  font-family: var(--font-display); font-size: 28px; line-height: 1;
  width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--roof-5); color: var(--ink); margin-bottom: var(--space-1);
}

/* ---------- Shop ---------- */

.filters { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-bottom: var(--space-3); }
.filters button {
  font: 700 16px/20px var(--font-sans); color: var(--ink);
  background: transparent; border: 0; box-shadow: inset 0 0 0 2px var(--ink);
  padding: var(--space-1) var(--space-2); cursor: pointer;
}
.filters button:hover { background: var(--roof-9); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }

.product-img { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; background: var(--roof-9); border-bottom: 2px solid var(--ink); }
.product .price { font-family: var(--font-display); font-size: 22px; line-height: 1; }
.product .meta { display: flex; gap: var(--space-1); flex-wrap: wrap; margin-bottom: var(--space-1); }
.empty { padding: var(--space-3); background: var(--roof-9); }

/* ---------- Forms ---------- */

.form { display: grid; gap: var(--space-3); max-width: 640px; }
.field { display: flex; flex-direction: column; gap: var(--space-1); }
.field label, .field legend { font-weight: 700; font-size: 14px; line-height: 20px; }
.field .hint { font-size: 14px; line-height: 20px; margin: 0; }
.input {
  font: 16px/24px var(--font-sans); color: var(--ink); background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--radius-sm);
  padding: 12px; width: 100%;
}
textarea.input { min-height: 140px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.input:focus-visible { outline: 3px solid var(--roof-1); outline-offset: 2px; }
input[type="file"].input { padding: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; gap: var(--space-3); } }
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--space-4); align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; gap: var(--space-3); } }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--surface); padding: var(--space-4) 0 var(--space-3); margin-top: var(--space-4); }
.site-footer a { color: var(--surface); }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-3); }
.site-footer h2 { font-size: 18px; margin-bottom: var(--space-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.site-footer .fine { grid-column: 1 / -1; border-top: 2px solid var(--surface); padding-top: var(--space-2); margin-top: var(--space-2); font-size: 14px; }
.footer-brand { font-family: var(--font-display); font-weight: 900; font-size: 28px; line-height: 1.1; margin-bottom: var(--space-1); }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.page-end { margin-bottom: 0; }
