/* North Prairie Tileworks — site styles */
:root {
  --clay: #F5EFE7;
  --clay-2: #ECE4D8;
  --ink: #2A241F;
  --ink-2: #4A4038;
  --muted: #6B5F55;
  --line: #D8CDBF;
  --espresso: #3B3129;
  --night: #2B241E;
  --night-text: #F1EAE0;
  --night-muted: #CDBFAE;
  --link-hover: #1E4B78;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; touch-action: manipulation; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--clay);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--link-hover); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--night-muted); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--espresso); color: var(--clay); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Type */
.label { margin: 0 0 18px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.dark .label { color: var(--night-muted); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: 56px; line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: 40px; line-height: 1.15; }
h3 { font-size: 24px; line-height: 1.25; }
.lede { font-size: 18px; color: var(--ink-2); }
.body-2 { color: var(--ink-2); }
.more { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.button {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px;
  background: var(--espresso); color: var(--clay); text-decoration: none; border: 0;
  font: 600 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}
.button:hover { background: var(--ink); color: var(--clay); }
.dark .button { background: var(--night-text); color: var(--night); }
.dark .button:hover { background: #fff; color: var(--night); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--clay); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.site-header .logo img { height: 62px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.nav .button { min-height: 40px; padding: 0 16px; font-weight: 500; }

/* Hero: intro on the left, photo whole on the right (611:800). The photo stays full size
   while the text column shrinks, and only shrinks once the text column is down to 360px. */
.hero {
  display: grid; grid-template-columns: minmax(360px, 1fr) auto; column-gap: clamp(40px, 5vw, 72px);
  align-items: center; padding-top: 40px; padding-bottom: 48px;
}
.hero-text { max-width: 540px; }
.hero h1 { font-size: clamp(36px, calc(5vw - 12px), 52px); line-height: 1.06; text-wrap: balance; }
.hero .lede { font-size: clamp(16px, 1.3vw, 18px); margin: 24px 0 0; }
.hero-img {
  width: auto; max-width: none; aspect-ratio: 611 / 800;
  height: max(360px, min(760px, calc(100vh - 190px), calc((100vw - 64px - 5vw - 360px) * 1.309)));
}

/* Centred intro: 404 and thank-you pages */
.intro { padding-top: 72px; padding-bottom: 88px; text-align: center; }
.intro h1 { max-width: 860px; margin: 0 auto; }
.intro .lede { max-width: 660px; margin: 28px auto 0; }

/* Sections */
.band { background: var(--clay-2); padding: 96px 0; }
.section { padding: 104px 0; }
.dark { background: var(--night); color: var(--night-text); }
.dark a { color: var(--night-text); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.section-head h2 { font-size: 36px; }

.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.offer { display: flex; flex-direction: column; gap: 16px; }
.offer img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.offer p { margin: 0; color: var(--ink-2); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.swatches { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.swatches a { grid-column: span 3; display: block; }
.swatches a:nth-child(-n+3) { grid-column: span 4; }
.swatches img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.work figure { margin: 0; }
.work img { width: 100%; object-fit: cover; }
.work figcaption { margin-top: 10px; font-size: 13px; color: var(--night-muted); }
.w-a { grid-column: span 7; } .w-a img { height: 560px; object-position: 50% 70%; }
.w-b { grid-column: span 5; } .w-b img { height: 560px; }
.w-c { grid-column: span 4; } .w-c img { height: 320px; }
.w-full { grid-column: 1 / -1; margin-top: 24px !important; } .w-full img { height: 620px; object-position: 50% 58%; }
.credit { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.credit img { height: 18px; width: auto; }

.restoration { border-bottom: 1px solid var(--line); text-align: center; }
.restoration h2 { font-size: 44px; line-height: 1.12; max-width: 820px; margin: 0 auto; }
.restoration .body-2 { max-width: 640px; margin: 20px auto 44px; }
.landmarks { margin: 0 auto; padding: 0; list-style: none; max-width: 980px; font-family: var(--serif); font-size: 26px; line-height: 1.5; }
.landmarks li { display: inline; }
.landmarks li + li::before { content: " · "; color: #A8998B; }

.paths > div { border-top: 1px solid var(--ink); padding-top: 20px; }
.paths h3 { font-size: 22px; margin-bottom: 8px; }
.paths p { margin: 0; color: var(--ink-2); }

.about img { width: 100%; height: auto; }
.about h2 { font-size: 36px; line-height: 1.2; }
.about p { margin: 20px 0 0; max-width: 480px; color: var(--ink-2); }

/* Contact form */
.contact { padding: 96px 0; }
.contact .split { align-items: start; }
.contact h2 { font-size: 40px; }
.contact-details { margin-top: 32px; display: grid; gap: 4px; font-size: 16px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--night-muted); }
.field input, .field select, .field textarea {
  font: 16px/1.4 var(--sans); color: var(--ink); background: #FBF8F3;
  border: 1px solid #8C7B6F; border-radius: 0; padding: 12px 12px; min-height: 46px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--night-muted); outline-offset: 1px; }
.form .note { font-size: 13px; color: var(--night-muted); margin: 0; }
.hidden { position: absolute; left: -9999px; }

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid #4A4038; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; color: var(--night-muted); }
.site-footer a { color: var(--night-muted); }
.site-footer .logo-light { height: 44px; width: auto; }

/* Glaze library */
.lib-intro { padding-top: 64px; padding-bottom: 28px; }
.lib-intro h1 { font-size: 52px; }
.lib-intro p { max-width: 620px; margin: 18px 0 0; color: var(--ink-2); }
.filters { padding-bottom: 32px; display: grid; gap: 28px; }
.filters .label { margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px;
  background: transparent; color: var(--ink-2); border: 1px solid var(--line); cursor: pointer;
  font: 500 14px/1 var(--sans);
}
.chip.finish { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); border-color: #C9BBAA; }
.chip[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); background: #fff; }
.chip.finish[aria-pressed="true"] { background: var(--espresso); color: var(--clay); border-color: var(--espresso); }
.chip:disabled { opacity: 0.4; cursor: default; }
.chip img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 18px; padding-bottom: 96px; }
.card { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.card .img { overflow: hidden; background: var(--clay-2); }
.card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform .25s ease; }
.card:hover img { transform: scale(1.03); }
.card:focus-visible { outline: 2px solid var(--link-hover); outline-offset: 4px; }
.card .num { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); }
.card .name { font-family: var(--serif); font-size: 19px; line-height: 1.2; }
.card .fin { font-size: 13px; line-height: 1.3; margin-top: -4px; color: var(--muted); }
.empty { padding-bottom: 96px; color: var(--ink-2); }

dialog.glaze { border: 0; padding: 0; max-width: min(960px, calc(100vw - 32px)); width: 100%; background: var(--clay-2); color: var(--ink); }
dialog.glaze::backdrop { background: rgba(43, 36, 30, 0.6); }
.glaze-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 32px; align-items: center; }
.glaze-inner img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.glaze-inner h2 { font-size: 44px; line-height: 1.1; }
.glaze-inner dl { margin: 24px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; font-size: 15px; }
.glaze-inner dt { color: var(--muted); }
.glaze-inner dd { margin: 0; }
.glaze-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.button.ghost { background: transparent; color: var(--ink); border: 1px solid #A8998B; }
.button.ghost:hover { background: #fff; color: var(--ink); }

/* Phones and small tablets */
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  h1, .intro h1 { font-size: 40px; }
  h2, .contact h2 { font-size: 32px; }
  .restoration h2 { font-size: 34px; }
  .landmarks { font-size: 21px; }
  .hero { display: flex; flex-direction: column; padding: 0 0 56px; }
  .hero-img { order: -1; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 55%; }
  .hero-text { max-width: none; padding: 32px 20px 0; }
  .hero h1 { font-size: clamp(32px, 10.3vw, 40px); }
  .hero h1 br { display: none; }
  .intro { padding-top: 48px; padding-bottom: 56px; }
  .band, .section, .contact { padding: 64px 0; }
  .three, .split, .form { grid-template-columns: minmax(0, 1fr); }
  .split { gap: 32px; }
  .work { grid-template-columns: minmax(0, 1fr); }
  .w-a, .w-b, .w-c, .w-full { grid-column: auto; }
  .w-a img, .w-b img { height: 440px; }
  .w-full img { height: 360px; }
  .swatches { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .swatches a, .swatches a:nth-child(-n+3) { grid-column: span 2; }
  .site-header .logo img { height: 50px; }
  .nav { gap: 6px 18px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lib-intro h1 { font-size: 40px; }
  .glaze-inner { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px; }
  .glaze-inner h2 { font-size: 32px; }
}
