/* Plumbline Fence Co. sample. Catalog design: black and white, tall serif headings on thin
   rules, product rows, and one band of color. --accent is the color a visitor can change. */
:root { --ink: #141414; --paper: #fff; --soft: #f4f3f0; --muted: #5a5955; --rule: #d9d6cf; --accent: #c2622d;
  --head: 'Bodoni Moda', 'Times New Roman', serif; --body: 'Archivo Narrow', 'Arial Narrow', Arial, sans-serif; --ease: cubic-bezier(.2, .7, .2, 1); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.55 var(--body); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
h1, h2, h3, p, ul, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1140px, 100% - 48px); margin: 0 auto; }
.wrap.narrow { width: min(820px, 100% - 48px); }

.sample { margin: 0; padding: 7px 16px; background: #000; color: #fff; font: 500 13.5px/1.4 var(--body); text-align: center; }
.sample a { color: #fff; font-weight: 700; }

/* The black header */
.top { position: sticky; top: 0; z-index: 30; background: var(--ink); color: #fff; }
.bar { display: flex; align-items: center; gap: 36px; min-height: 78px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.mark { flex: none; width: 40px; height: 40px; fill: currentColor; }
.mark path:last-child { fill: var(--accent); }
.logo span { display: grid; line-height: 1; }
.logo b { font: 700 25px/1 var(--head); letter-spacing: .01em; }
.logo i { margin-top: 5px; font: 600 11.5px/1 var(--body); letter-spacing: .3em; text-transform: uppercase; color: #bdbab3; }
#nav { display: flex; gap: 30px; margin-left: auto; }
#nav a { padding: 8px 0; font: 600 14.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: #d6d3cc; border-bottom: 2px solid transparent; }
#nav a:hover, #nav a[aria-current] { color: #fff; border-bottom-color: var(--accent); }
.phone { font: 700 18px/1 var(--body); letter-spacing: .03em; text-decoration: none; white-space: nowrap; }
.phone:hover { color: var(--accent); }
.menu { display: none; width: 48px; height: 48px; margin-left: auto; padding: 0; border: 1px solid #555; background: none; cursor: pointer; }
.menu i { display: block; width: 22px; height: 2px; margin: 5px auto; background: #fff; }

/* Pictures: a photo over a drawing of the same thing, with its label */
.shot, .grain { position: relative; overflow: hidden; background: var(--soft); }
.shot { aspect-ratio: 4 / 3; }
.art, .shot > img, .grain > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.shot > img, .grain > img { object-fit: cover; }
.draw { width: 100%; height: 100%; }
.draw.fence, .art .fence { padding: 8% 6% 4%; }
.cap { position: absolute; z-index: 2; left: 10px; bottom: 10px; padding: 3px 8px; background: rgba(255, 255, 255, .92); color: var(--ink); font: 600 11px/1.4 var(--body); letter-spacing: .04em; }

/* The strip of wood grain, and the black plate of words over its lower edge */
.grain { height: clamp(210px, 27vw, 350px); background: #5d3a22; }
.grain .cap { top: 10px; bottom: auto; }   /* the black plate covers the lower edge of the strip */
.plate { position: relative; z-index: 2; width: min(900px, 100%); margin: -118px auto 0; padding: 46px clamp(22px, 6vw, 72px) 50px; background: var(--ink); color: #fff; text-align: center; }
.label { font: 600 13.5px/1.3 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.plate .label { color: var(--accent); filter: brightness(1.35); }
.plate h1 { margin: 12px 0 14px; font: 700 clamp(38px, 5.4vw, 60px)/1.05 var(--head); letter-spacing: -.01em; }
.plate p:last-child { max-width: 640px; margin: 0 auto; color: #e3e0d9; }

.sec { padding: 84px 0; }
.sec.lined { border-top: 1px solid var(--ink); }
.big { margin-bottom: 18px; font: 700 clamp(46px, 6vw, 68px)/1 var(--head); letter-spacing: -.02em; }
.mid { margin: 8px 0 30px; font: 700 clamp(31px, 4vw, 44px)/1.08 var(--head); letter-spacing: -.01em; }
.center { text-align: center; }
.fine { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* Product rows */
.row { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 56px; align-items: start; padding: 38px 0; }
.row + .row { border-top: 1px solid var(--rule); }
.row.text .words { grid-column: 2; }
.words h3 { padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--ink); font: 700 clamp(27px, 3vw, 36px)/1.1 var(--head); }
.words p { max-width: 62ch; }
.facts { display: grid; margin-top: 18px; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 16.5px; }
.facts dt { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; padding-top: 3px; color: var(--muted); }
.price { margin-top: 18px; font-weight: 700; }
.price span { font-weight: 400; color: var(--muted); }
.more, .tel { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font: 700 14.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding-bottom: 5px; border-bottom: 2px solid var(--accent); }
.go { width: 18px; height: 18px; transition: transform .25s var(--ease); }
a:hover > .go, button:hover > .go { transform: translateX(4px); }

/* The band of color with two box buttons */
.band { background: var(--accent); }
.band .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 20px; padding: 20px 0; }
.box { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 30px; background: var(--ink); color: #fff; font: 700 14.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s; }
.box:hover { background: #fff; color: var(--ink); }

/* Feature: the style and stain picker */
.picker { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.stage { border: 1px solid var(--ink); background: var(--soft); }
.stage > div { aspect-ratio: 4 / 3; padding: 7% 6% 3%; }
.stage .fence { width: 100%; height: 100%; }
.stage figcaption { padding: 12px 16px; border-top: 1px solid var(--ink); background: #fff; font: 600 13.5px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.controls { display: grid; gap: 22px; }
legend, .controls label, .form label, .pick > span { display: block; margin-bottom: 8px; font: 700 13px/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); background: #fff; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.opts button:hover { background: var(--soft); }
.opts button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.opts button i { width: 16px; height: 16px; border: 1px solid rgba(0, 0, 0, .35); border-radius: 50%; }
.opts button[aria-pressed="true"] i { border-color: #fff; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.controls .pair { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: end; }
.controls label { margin: 0; }
input[type=range] { display: block; width: 100%; height: 44px; margin: 0; accent-color: var(--ink); }
output { display: block; font: 600 17px/1.2 var(--body); letter-spacing: 0; text-transform: none; color: var(--ink); }
select, .form input, .form textarea { display: block; width: 100%; min-height: 52px; margin-top: 8px; padding: 12px 16px; border: 1px solid transparent; border-radius: 0; background: var(--soft); font: 400 18px/1.3 var(--body); letter-spacing: 0; text-transform: none; color: var(--ink); }
select:focus, .form input:focus, .form textarea:focus { border-color: var(--ink); outline: none; }
.total { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 18px; padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.total span { font: 700 13px/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.total b { justify-self: end; font: 700 46px/1 var(--head); }
.total small { grid-column: 1 / -1; font-size: 15.5px; color: var(--muted); }
.send { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; border: 0; background: var(--ink); color: #fff; font: 700 15px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s; }
.send:hover { background: var(--accent); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.steps h3 { padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--ink); font: 700 27px/1.15 var(--head); }

/* Forms */
.form { display: grid; gap: 14px; }
.form label { margin: 0; }
.form textarea { resize: vertical; }
.pickline { padding: 14px 16px; border: 1px solid var(--ink); font-weight: 600; }
.sent { padding: 14px 16px; border-left: 4px solid var(--accent); background: var(--soft); font-size: 16.5px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 64px; }
.tel { margin: 0 0 8px; font-size: 28px; letter-spacing: .03em; }

/* Service area */
.counties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.counties h3 { padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--ink); font: 700 27px/1.15 var(--head); }
.counties li { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.map { margin-top: 48px; border: 1px solid var(--ink); background: var(--soft); }
.map iframe { display: block; width: 100%; height: 440px; border: 0; }

/* The black footer and the grey line under it */
.foot { background: var(--ink); color: #fff; }
.foot .wrap { padding: 44px 0 40px; }
.footnav { display: flex; flex-wrap: wrap; gap: 12px 30px; padding-bottom: 26px; border-bottom: 1px dotted #777; }
.footnav a { font: 600 14px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: #d6d3cc; padding: 8px 0; }
.footnav a:hover { color: #fff; }
.footnav .right { margin-left: auto; color: #fff; }
.footrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 34px; }
.footrow p { text-align: right; font-size: 16px; line-height: 1.5; color: #e3e0d9; }
.credit { margin: 0; padding: 12px 20px; background: #86837d; color: #fff; font-size: 13.5px; text-align: center; }
.credit a { color: #fff; }

/* Push to call (phones), the chat icon and Make it yours */
.callnow { display: none; }
.yours { position: fixed; z-index: 40; right: 16px; bottom: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.chat { width: 50px; height: 50px; border: 0; background: var(--ink); cursor: pointer; }
.chat svg { width: 24px; height: 24px; margin: 0 auto; fill: #fff; }
.chatnote { max-width: 250px; padding: 12px 14px; border: 1px solid var(--ink); background: #fff; font-size: 15px; line-height: 1.4; }
#yoursBtn { min-height: 46px; padding: 0 18px; border: 1px solid var(--ink); background: #fff; font: 700 13.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
#yoursBtn:hover { background: var(--ink); color: #fff; }
.panel { display: grid; gap: 12px; width: min(290px, calc(100vw - 32px)); padding: 18px; border: 1px solid var(--ink); background: #fff; }
.panel[hidden], .chatnote[hidden] { display: none; }
.panel b { font: 700 22px/1.1 var(--head); }
.panel label { font: 700 12.5px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.panel input { display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 8px 12px; border: 0; background: var(--soft); font: 400 17px/1.3 var(--body); letter-spacing: 0; text-transform: none; color: var(--ink); }
.swatches { display: flex; gap: 8px; }
.swatches button { width: 34px; height: 34px; padding: 0; border: 2px solid #fff; outline: 1px solid var(--rule); cursor: pointer; }
.swatches button[aria-pressed="true"] { outline: 2px solid var(--ink); }
.reset { min-height: 40px; border: 1px solid var(--ink); background: #fff; font-weight: 600; cursor: pointer; }

/* Things come up into place the first time they are on screen */
.js .rise { opacity: 0; transform: translateY(18px); transition: opacity .6s ease-out, transform .6s var(--ease); }
.js .rise.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .bar { gap: 16px; }
  .phone { margin-left: auto; }
  .menu { display: block; margin-left: 0; }
  .js #nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px 24px 20px; background: var(--ink); border-top: 1px solid #333; }
  .js #nav.open { display: flex; }
  .js #nav a { padding: 16px 0; border-bottom: 1px solid #333; }
  html:not(.js) .bar { flex-wrap: wrap; padding: 12px 0; }
  html:not(.js) #nav { order: 3; width: 100%; flex-wrap: wrap; gap: 4px 22px; margin: 0; }
  html:not(.js) .menu { display: none; }
  .picker, .two { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  /* the fence stays in view under the header while the choices below it are changed */
  .stage { position: sticky; top: 86px; z-index: 3; }
  .stage > div { aspect-ratio: 16 / 9; padding: 3% 6% 2%; }
  .row { grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 700px) {
  body { font-size: 17px; padding-bottom: 58px; }
  .wrap, .wrap.narrow { width: calc(100% - 36px); }
  .phone { display: none; }
  .menu { margin-left: auto; }
  .plate { margin-top: -64px; padding: 30px 20px 34px; }
  .sec { padding: 56px 0; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 30px 0; }
  .row.text .words { grid-column: 1; }
  .facts div { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
  .band .wrap { flex-direction: column; padding: 18px 0; }
  .box { justify-content: center; }
  .steps, .counties { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pair, .controls .pair { grid-template-columns: minmax(0, 1fr); }
  .opts button { flex: 1 1 auto; justify-content: center; }
  .total b { font-size: 40px; }
  .map iframe { height: 320px; }
  .footnav .right { margin-left: 0; }
  .footrow p { text-align: left; }
  .callnow { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; background: var(--accent); color: #fff; font: 700 16px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
  .callnow svg { width: 20px; height: 20px; fill: currentColor; }
  .yours { bottom: 70px; right: 12px; flex-direction: row; align-items: flex-end; flex-wrap: wrap-reverse; justify-content: flex-end; }
  .yours .panel, .yours .chatnote { flex: 0 0 100%; margin-left: auto; }
  .yours .chat { order: 2; width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .rise { opacity: 1; transform: none; }
}
