/* Hinge and Rail Garage Doors: sample site. Design style: Heritage.
   An aged parchment sheet with engraved gold line work, a letterhead for a header, a strip
   of five tabs, and one wide photograph. The ornaments are SVG drawn in the generator.
   --main and --second are the two brand colors that "Make it yours" changes. */
:root {
  --main: #14254a;      /* deep navy: the name, the motto band, buttons */
  --second: #6e1a1c;    /* oxblood: the tagline, headings */
  --green: #1f4532;     /* forest green: the current tab */
  --gold: #a9853a;
  --gold-lt: #d8bd78;
  --parch: #ecdcb4;
  --parch-dk: #dcc691;
  --cream: #f9f2e1;
  --etch: #5d4625;      /* the ink of the engraved drawings */
  --text: #2e2517;
  --head: "Alegreya SC", "Alegreya", Georgia, "Times New Roman", serif;
  --body: "Alegreya", Georgia, "Times New Roman", serif;
  --wrap: 1180px;
  --gut: clamp(18px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Paper: soft blotches and a fine fibre, both made with SVG noise so there is no image file. */
  --blotch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='480'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.007 .011' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .52  0 0 0 0 .34  0 0 0 0 .1  0 0 0 .62 -.2'/%3E%3C/filter%3E%3Crect width='480' height='480' filter='url(%23n)'/%3E%3C/svg%3E");
  --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7 .9' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36  0 0 0 0 .24  0 0 0 0 .08  0 0 0 .5 -.14'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--fibre), var(--blotch), #d3bf92; color: var(--text); font: 400 19px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; }
section { position: relative; padding: clamp(52px, 6.5vw, 88px) 0; }

.sample { position: relative; z-index: 2; background: #111; color: #fff; font: 400 13px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; text-align: center; padding: 7px 16px; }
.sample a { font-weight: 700; }

/* The sheet: the whole page is one framed leaf of paper lying on a parchment table. */
.sheet { position: relative; max-width: 1380px; margin: 22px auto 44px; background: var(--cream); border: 1px solid var(--gold); outline: 1px solid #8a6a2a55; outline-offset: 5px; box-shadow: 0 2px 0 #fff6 inset, 0 18px 50px -10px #4a300f8c, 0 3px 10px #4a300f55; overflow-x: clip; }

/* Paper grounds */
.parch, .letterhead { background: var(--fibre), var(--blotch), radial-gradient(ellipse 80% 120% at 50% 0, #f6ebcd 0, #f6ebcd00 70%), linear-gradient(#ecdcb4, #e6d2a2); box-shadow: inset 0 0 70px #9a6c2440, inset 0 0 8px #9a6c2433; }
.quiet { background: linear-gradient(var(--cream), #f6eedb); }
.parch, .quiet, .motto { border-top: 1px solid var(--gold); }

/* Type */
.h1, .h2, .h3, .name, .tabs a, .thead, .lhead b { font-family: var(--head); font-weight: 700; line-height: 1.1; letter-spacing: .02em; }
.h1 { font-size: clamp(32px, 4.2vw, 52px); color: var(--second); }
.h2 { font-size: clamp(28px, 3.3vw, 42px); color: var(--second); }
.h3 { font-size: clamp(22px, 2vw, 26px); color: var(--main); }
.lead { font: italic 400 clamp(20px, 1.9vw, 24px)/1.45 var(--body); color: var(--text); }
.h2 + .lead, .h1 + .lead { margin-top: 12px; }
.tag { font: 700 14px/1.3 var(--head); letter-spacing: .16em; color: var(--green); margin-bottom: 14px; }
.tag::before, .tag::after { content: "\2766"; display: inline-block; margin: 0 10px; color: var(--gold); font-size: 13px; }
.tag::before { transform: scaleX(-1); }
.fine { margin-top: 22px; font-size: 15.5px; font-style: italic; color: #6a5a40; }
.note { margin-top: 18px; padding-left: 14px; border-left: 2px solid var(--gold); font-size: 16px; font-style: italic; color: #6a5a40; }

/* A heading set between two flourishes */
.between { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 1.6vw, 20px); text-align: center; }
.between > span { min-width: 0; }
.orn { flex: none; width: clamp(34px, 6vw, 70px); height: auto; color: var(--gold); transform: scaleX(-1); }
.orn.flip { transform: none; }
.orn.mid { transform: none; margin: 0 auto; }
.flourish { width: min(100%, 520px); height: auto; margin: 0 auto; color: var(--gold); }
.left { text-align: left; }

/* Corner pieces. Put on anything with position: relative. */
.corner { position: absolute; width: clamp(30px, 4.6vw, 62px); height: auto; color: var(--gold); pointer-events: none; opacity: .9; }
.corner.tl { left: 8px; top: 8px; }
.corner.tr { right: 8px; top: 8px; transform: scaleX(-1); }
.corner.bl { left: 8px; bottom: 8px; transform: scaleY(-1); }
.corner.br { right: 8px; bottom: 8px; transform: scale(-1); }

/* Buttons: an engraved plate */
.btn { display: inline-block; padding: 12px 26px 13px; border: 1px solid var(--gold); background: var(--main); color: #f8ecce; box-shadow: inset 0 0 0 3px var(--main), inset 0 0 0 4px var(--gold-lt); font: 700 17px/1.2 var(--head); letter-spacing: .08em; text-decoration: none; cursor: pointer; transition: background .3s, color .3s, box-shadow .3s; }
.btn:hover, .btn:focus-visible { background: var(--green); box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 4px var(--gold-lt); }
.btn.plain { background: var(--cream); color: var(--main); box-shadow: inset 0 0 0 3px var(--cream), inset 0 0 0 4px var(--gold-lt); }
.btn.plain:hover, .btn.plain:focus-visible { background: #fff; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px var(--gold); }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row.mid { justify-content: center; margin-top: 26px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* The letterhead: seal at the left, the name and tagline, a small block of particulars at the right */
.letterhead { position: relative; display: grid; grid-template-columns: 170px 1fr 236px; align-items: center; gap: 10px; padding: 22px 40px 20px; }
.letterhead::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background: repeating-linear-gradient(45deg, #a9853a14 0 1px, #0000 1px 15px), repeating-linear-gradient(-45deg, #a9853a14 0 1px, #0000 1px 15px); }
.letterhead > * { position: relative; }
.letterhead > .corner { position: absolute; }
.seal { justify-self: center; width: 146px; border-radius: 50%; box-shadow: 0 6px 16px #4a300f66; }
.mark { width: 100%; height: auto; }
.title { text-align: center; min-width: 0; }
.name { display: block; color: var(--main); font-weight: 800; font-size: clamp(31px, 3.55vw, 51px); line-height: 1.02; letter-spacing: .01em; text-decoration: none; text-shadow: 0 1px 0 #fff8; overflow-wrap: anywhere; }
.name > span:not([data-name]) { white-space: nowrap; }
.title .flourish { margin: 10px auto 2px; }
.tagline { font: italic 500 clamp(22px, 2.9vw, 38px)/1.15 var(--body); color: var(--second); }
.credits { text-align: center; font-family: var(--head); line-height: 1.25; }
.credits .where { font-size: 21px; font-weight: 700; color: var(--main); }
.credits .what { font-size: 16px; color: var(--second); letter-spacing: .04em; }
.credits .orn { width: 64px; margin: 8px auto; }
.credits .tel { display: block; font-size: 25px; font-weight: 700; color: var(--main); text-decoration: none; white-space: nowrap; }
.credits .tel:hover { color: var(--second); }
.credits .lic { font-size: 14.5px; color: var(--second); letter-spacing: .04em; }

/* The five tabs: one strip of equal cells */
.tabs { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); background: linear-gradient(#fbf4e2, #efe2c0); border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); box-shadow: 0 3px 8px #4a300f2e; }
.tabs a { display: grid; place-items: center; min-height: 48px; padding: 6px 4px; color: var(--main); font-weight: 500; font-size: clamp(14.5px, 1.5vw, 20px); letter-spacing: .05em; text-decoration: none; text-align: center; transition: background .3s, color .3s; }
.tabs a + a { border-left: 1px solid var(--gold-lt); }
.tabs a:hover { background: #fffaf0; color: var(--second); }
.tabs a[aria-current] { background: var(--green); color: #f8ecce; box-shadow: inset 0 0 0 1px var(--gold-lt); }

/* The wide photograph. Underneath is an engraved plate that shows until the photo exists. */
.pano { position: relative; aspect-ratio: 3 / 1; overflow: hidden; background: var(--parch); }
.pano.slim { aspect-ratio: auto; height: clamp(110px, 15vw, 200px); }
.pano .plate { position: absolute; inset: 0; background: var(--fibre), var(--blotch), radial-gradient(ellipse 60% 90% at 66% 40%, #f8e9bd, #f8e9bd00 70%), linear-gradient(#f3e3b8, #e4cf9c); box-shadow: inset 0 0 90px #9a6c2455; }
.pano .draw { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--etch); }
.pano .rule { position: absolute; inset: 12px; border: 1px solid var(--gold); box-shadow: 0 0 0 3px #f6eac866, 0 0 0 4px var(--gold); pointer-events: none; }
.pano .corner { width: clamp(26px, 3.6vw, 50px); }
.pano > .cap { left: 50%; bottom: 5px; transform: translateX(-50%); border: 1px solid var(--gold-lt); white-space: nowrap; }
.pano .corner.tl, .pano .corner.tr { top: 20px; } .pano .corner.bl, .pano .corner.br { bottom: 20px; }
.pano .corner.tl, .pano .corner.bl { left: 20px; } .pano .corner.tr, .pano .corner.br { right: 20px; }
.pano.slim .corner { display: none; }
.pano > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cap { position: absolute; left: 0; bottom: 0; z-index: 3; padding: 4px 10px; background: #1c140ad9; color: #f6e9c8; font: 400 12px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .03em; }

/* Framed pictures: a gold double rule, the drawing, and the painting over it */
.art { position: relative; padding: 5px; border: 1px solid var(--gold); background: var(--cream); box-shadow: 0 6px 16px -6px #4a300f66; }
.art .in { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--gold-lt); background: var(--fibre), linear-gradient(#f4e6bf, #e6d3a3); }
.art .draw, .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art .draw { color: var(--etch); }
.art .cap { left: 6px; bottom: 6px; }

/* Under the panorama: a still life, the opening words, and a note behind a gold rule */
.intro { padding: clamp(34px, 4vw, 54px) 0; }
.trio { display: grid; grid-template-columns: 300px minmax(0, 1fr) 250px; gap: clamp(22px, 3.4vw, 50px); align-items: center; }
.trio .mid { text-align: center; }
.trio .h1 { font-size: clamp(30px, 3.1vw, 42px); }
.trio .h1 > span { text-wrap: balance; }
.trio .h1 .orn { width: clamp(28px, 3.4vw, 46px); }
.trio .aside { padding-left: clamp(18px, 2.6vw, 34px); border-left: 1px solid var(--gold); text-align: center; font-size: 19px; line-height: 1.4; }
.bell { width: 50px; margin: 0 auto 6px; color: var(--gold); }
.aside .orn { width: 90px; margin-bottom: 10px; }
.aside .tel { display: inline-block; margin-top: 8px; font: 700 23px var(--head); color: var(--second); text-decoration: none; border-bottom: 1px solid var(--gold); white-space: nowrap; }
/* the still life fades into the paper, with no frame */
.art.still { padding: 0; border: 0; background: none; box-shadow: none; }
.art.still .in { border: 0; background: none; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 74%, #0000 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 74%, #0000 100%); }
.art.still .cap { left: 50%; bottom: -6px; transform: translateX(-50%); white-space: nowrap; }

/* The motto: a navy band with gold small caps */
.motto { background: linear-gradient(#0000, #0003), var(--main); border-bottom: 1px solid var(--gold); box-shadow: inset 0 0 0 3px var(--main), inset 0 4px 0 -3px var(--gold-lt), inset 0 -4px 0 -3px var(--gold-lt); padding: 15px var(--gut); }
.motto p { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 26px); font: 500 clamp(19px, 2.5vw, 31px)/1.2 var(--head); letter-spacing: .07em; color: var(--gold-lt); text-align: center; }
.motto .orn { color: var(--gold-lt); }

/* The work we do */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(22px, 2.6vw, 36px); margin-top: 38px; }
.card { flex: 0 1 calc((100% - 2 * clamp(22px, 2.6vw, 36px)) / 3); display: block; text-align: center; text-decoration: none; font-size: 17.5px; line-height: 1.5; }
.card .art { transition: transform .5s var(--ease), box-shadow .5s; }
.card:hover .art, .card:focus-visible .art { transform: translateY(-4px); box-shadow: 0 14px 24px -8px #4a300f77; }
.card .h3 { margin: 18px 0 6px; }
.card:hover .h3 { color: var(--second); }
.card b { display: block; margin-top: 8px; font: 700 16.5px var(--head); letter-spacing: .06em; color: var(--green); }

/* Feature: AI voice receptionist. A page of the day book and a job ticket. */
.feature .lead { max-width: 640px; margin-left: auto; margin-right: auto; }
.desk { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(22px, 3vw, 40px); align-items: start; margin-top: 34px; }
.ledger { position: relative; padding: 22px 30px 26px 56px; background: linear-gradient(90deg, #0000 0 36px, #b0424240 36px 37px, #0000 37px 40px, #b0424240 40px 41px, #0000 41px), repeating-linear-gradient(#0000 0 35px, #6f8fb024 35px 36px), #fbf5e4; border: 1px solid var(--gold); box-shadow: 0 10px 24px -10px #4a300f88, inset 0 0 40px #c9a85a26; }
.lhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; padding-bottom: 10px; border-bottom: 3px double var(--main); }
.lhead b { font-size: 27px; color: var(--main); }
.lhead span { font-style: italic; font-size: 17px; color: var(--second); }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 18px; }
.sound { display: inline-flex; align-items: center; gap: 9px; font: 500 17px var(--head); letter-spacing: .04em; color: var(--main); cursor: pointer; }
.sound input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); }
.hint { margin-top: 8px; font-size: 15.5px; font-style: italic; color: #6a5a40; }
.lines { margin-top: 14px; display: grid; gap: 0; }
.lines li { display: grid; grid-template-columns: 124px 1fr; gap: 0 16px; padding: 8px 0; border-bottom: 1px dotted #a9853a88; line-height: 1.42; }
.lines b { font: 700 15.5px/1.7 var(--head); letter-spacing: .07em; }
.lines .rec b { color: var(--main); } .lines .cal b { color: var(--second); }
.lines .cal span { font-style: italic; }
.closed { margin-top: 14px; font: 500 16px var(--head); letter-spacing: .08em; color: var(--green); text-align: center; }
/* With script on, lines wait unseen (keeping their place on wide screens) until it is their turn. */
.js .lines li, .js .closed { visibility: hidden; opacity: 0; }
.js .lines li.on, .js .closed.on { visibility: visible; opacity: 1; transition: opacity .6s; }
.js .lines li.now { background: linear-gradient(90deg, #d8bd7833, #d8bd7800); }

.ticket { position: sticky; top: 70px; padding: 30px 28px 28px; background: var(--fibre), #f6ead0; border: 1px solid var(--gold); outline: 1px dashed var(--gold); outline-offset: -7px; box-shadow: 0 10px 24px -10px #4a300f88; }
.ticket .corner { width: 30px; }
.ticket .corner.tl, .ticket .corner.tr { top: 12px; } .ticket .corner.bl, .ticket .corner.br { bottom: 12px; }
.ticket .corner.tl, .ticket .corner.bl { left: 12px; } .ticket .corner.tr, .ticket .corner.br { right: 12px; }
.thead { text-align: center; font-size: 28px; color: var(--main); letter-spacing: .1em; }
.tsub { margin-top: 2px; text-align: center; font-size: 15px; font-style: italic; color: #6a5a40; }
.ticket dl { margin-top: 14px; }
.ticket dl div { padding: 7px 0 5px; border-bottom: 1px solid #a9853a77; }
.ticket dt { font: 500 13.5px/1.2 var(--head); letter-spacing: .1em; color: var(--second); }
.ticket dd { min-height: 28px; font: italic 500 19.5px/1.35 var(--body); color: var(--main); }
.js .ticket dd span { opacity: 0; }
.js .ticket div.on dd span { opacity: 1; transition: opacity .7s; }
.stamp { display: table; margin: 18px auto 0; padding: 3px 16px 4px; border: 3px double var(--second); border-radius: 6px; color: var(--second); font: 800 26px/1.1 var(--head); letter-spacing: .14em; transform: rotate(-11deg); background: #f6ead0cc; }
.js .stamp { opacity: 0; transform: rotate(-11deg) scale(1.5); }
.js .stamp.on { opacity: .92; transform: rotate(-11deg); transition: opacity .25s, transform .35s var(--ease); }

/* With every job */
.ticks { display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .58em; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 0 2px var(--cream), 0 0 0 3px var(--gold); }
.every .ticks { grid-template-columns: 1fr 1fr; gap: 14px 40px; margin: 30px 0 32px; font-size: 21px; }

/* Sample reviews */
.revs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 36px; }
.rev { padding: 26px 24px 22px; text-align: center; border-top: 3px double var(--gold); border-bottom: 1px solid var(--gold); background: #fbf5e466; }
.rev p { font: italic 400 22px/1.4 var(--body); }
.rev small { display: block; margin-top: 14px; font: 700 14px var(--head); letter-spacing: .14em; color: var(--green); }

/* Footer: plain */
footer { border-top: 1px solid var(--gold); background: #fbf6e8; padding: 44px 0 34px; font-size: 16.5px; line-height: 1.55; color: #55472f; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr .8fr; gap: 32px; }
.foot .fname { font: 700 22px var(--head); color: var(--main); margin-bottom: 6px; }
.foot h4 { font: 700 15px var(--head); letter-spacing: .14em; color: var(--second); margin-bottom: 6px; }
.foot nav { display: grid; gap: 2px; justify-items: start; }
.foot a { text-decoration: none; border-bottom: 1px solid #a9853a88; }
.foot a:hover { color: var(--second); }
.credit { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--gold-lt); font-size: 14.5px; font-style: italic; }

/* Inner pages */
.top { padding: clamp(36px, 4.6vw, 60px) 0; }
.svc { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: clamp(24px, 4.4vw, 64px); align-items: center; padding: clamp(28px, 3.6vw, 46px) 0; border-bottom: 1px solid var(--gold-lt); scroll-margin-top: 60px; }
.svc:first-child { padding-top: 0; }
.svc:nth-child(even) .art { order: 2; }
.svc:nth-child(even) { grid-template-columns: 1fr minmax(0, 460px); }
.svc .price { margin: 4px 0 12px; font: 700 18px var(--head); letter-spacing: .08em; color: var(--green); }
.svc .ticks { margin: 16px 0 24px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 70px); align-items: center; }
.split.top-align { align-items: start; }
.split p + p { margin-top: 14px; }
.split .h2 { margin-bottom: 14px; }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 3px double var(--gold); border-bottom: 3px double var(--gold); }
.nums div { padding: 28px 16px; text-align: center; }
.nums div + div { border-left: 1px solid var(--gold); }
.nums b { display: block; font: 800 clamp(40px, 5vw, 64px)/1 var(--head); color: var(--main); }
.nums b.sm { font-size: clamp(22px, 2.6vw, 32px); line-height: 2; letter-spacing: .04em; }
.nums span { font: 500 15.5px var(--head); letter-spacing: .12em; color: var(--second); }
.map { padding: 6px; border: 1px solid var(--gold); background: var(--cream); box-shadow: 0 8px 20px -8px #4a300f66; }
.map iframe { display: block; width: 100%; height: clamp(320px, 44vw, 520px); border: 1px solid var(--gold-lt); filter: sepia(.28) saturate(.9); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.three > div { padding: 26px 22px; text-align: center; border: 1px solid var(--gold); outline: 1px solid var(--gold-lt); outline-offset: -6px; background: var(--fibre), #f6ead0; }
.three .flourish.sm { width: 150px; margin: 8px auto 12px; }
.three li { font-size: 19px; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 5px; font: 500 16px var(--head); letter-spacing: .08em; color: var(--main); }
.form input, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--gold); border-radius: 0; background: #fffdf6; color: var(--text); font: 400 18px var(--body); box-shadow: inset 0 1px 4px #4a300f1f; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.form textarea { min-height: 130px; resize: vertical; }
.form .btn { justify-self: start; }
.sent { padding: 12px 14px; border-left: 3px solid var(--green); background: #fffdf6; font-size: 16.5px; font-style: italic; }
.sent[hidden] { display: none; }
.facts-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--gold-lt); }
.facts-list li:first-child { border-top: 3px double var(--gold); }
.facts-list span { font: 500 15px var(--head); letter-spacing: .1em; color: var(--second); }
.facts-list b { font: 700 20px var(--head); color: var(--main); text-align: right; }
.facts-list a { text-decoration: none; }

/* Things fade up gently the first time they are on screen */
.js .rise { opacity: 0; transform: translateY(12px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rise.in { opacity: 1; transform: none; }

/* Floating: push to call (phones), the round chat icon (for show) and Make it yours */
.callnow { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; align-items: center; justify-content: center; gap: 10px; padding: 15px 16px; background: var(--main); border-top: 1px solid var(--gold-lt); color: #f8ecce; font: 700 19px var(--head); letter-spacing: .1em; text-decoration: none; box-shadow: 0 -6px 18px #2a1a0666; }
.callnow svg { width: 19px; height: 19px; fill: currentColor; }
.yours { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: grid; justify-items: end; gap: 10px; }
.yours > button { padding: 11px 18px 12px; border: 1px solid var(--gold-lt); background: #1c140a; color: #f8ecce; font: 700 16px var(--head); letter-spacing: .08em; box-shadow: 0 8px 22px #2a1a0680; cursor: pointer; }
.yours .chat { width: 54px; height: 54px; padding: 0; display: grid; place-items: center; border-radius: 50%; background: var(--green); border: 2px solid var(--gold-lt); }
.yours .chat svg { width: 25px; height: 25px; fill: #f8ecce; }
.chatnote { width: min(260px, calc(100vw - 32px)); padding: 12px 14px; background: var(--cream); border: 1px solid var(--gold); box-shadow: 0 8px 24px #2a1a0666; font-size: 16px; line-height: 1.4; }
.chatnote[hidden] { display: none; }
.panel { width: min(310px, calc(100vw - 32px)); padding: 20px; background: var(--cream); border: 1px solid var(--gold); outline: 1px solid var(--gold-lt); outline-offset: -5px; box-shadow: 0 14px 40px #2a1a0680; display: grid; gap: 12px; }
.panel[hidden] { display: none; }
.panel strong { font: 700 24px var(--head); color: var(--main); }
.panel label { display: grid; gap: 4px; font: 500 15px var(--head); letter-spacing: .06em; }
.panel input[type=text] { width: 100%; padding: 9px 11px; border: 1px solid var(--gold); background: #fffdf6; font: 400 17px var(--body); }
.swatches { display: flex; gap: 8px; }
.swatches button { width: 44px; height: 32px; padding: 0; border: 2px solid var(--cream); box-shadow: 0 0 0 1px #0004; cursor: pointer; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--gold); }
.panel p { font-size: 15.5px; line-height: 1.4; font-style: italic; color: #6a5a40; }
.panel .reset { justify-self: start; padding: 0; border: 0; background: none; color: var(--main); font: 500 16px var(--body); text-decoration: underline; cursor: pointer; }

@media (max-width: 1420px) {
  .sheet { margin: 0 auto; border-width: 0 0 1px; outline: 0; }
}
@media (max-width: 1080px) {
  .letterhead { grid-template-columns: 130px 1fr 210px; padding: 18px 30px 16px; }
  .seal { width: 118px; }
  .credits .where { font-size: 18px; } .credits .tel { font-size: 21px; }
  .trio { grid-template-columns: 220px 1fr 210px; gap: 22px; }
  .trio .h1 .orn { display: none; }
}
@media (max-width: 900px) {
  /* phones and small tablets: the particulars leave the letterhead and push to call takes over */
  .letterhead { grid-template-columns: 1fr; padding: 16px 16px 12px; gap: 6px; }
  .letterhead > .corner { display: none; }
  .seal { width: 84px; }
  .credits { display: none; }
  .title .flourish { margin: 6px auto 0; width: min(78%, 360px); }
  .pano { aspect-ratio: 16 / 9; }
  .pano.slim { aspect-ratio: auto; height: 104px; }
  .pano .rule { inset: 7px; }
  .pano .corner.tl, .pano .corner.tr { top: 13px; } .pano .corner.bl, .pano .corner.br { bottom: 13px; }
  .pano .corner.tl, .pano .corner.bl { left: 13px; } .pano .corner.tr, .pano .corner.br { right: 13px; }
  .trio { grid-template-columns: 1fr; }
  .trio .art.still { width: min(100%, 300px); margin: 0 auto; order: 2; }
  .trio .aside { order: 3; padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--gold); }
  .card { flex-basis: calc((100% - clamp(22px, 2.6vw, 36px)) / 2); }
  .desk, .split, .revs, .three, .foot { grid-template-columns: 1fr; }
  .svc, .svc:nth-child(even) { grid-template-columns: 1fr; }
  .svc:nth-child(even) .art { order: 0; }
  .ticket { position: relative; top: auto; }
  /* on a phone the day book grows as the call goes, so it does not start as a long blank page */
  .js .lines li, .js .closed { display: none; }
  .js .lines li.on { display: grid; } .js .closed.on { display: block; }
  .callnow { display: flex; }
  .yours { bottom: 66px; right: 10px; gap: 8px; }
  .yours > button { padding: 8px 12px 9px; font-size: 13.5px; }
  .yours .chat { width: 44px; height: 44px; }
  .yours .chat svg { width: 20px; height: 20px; }
  footer { padding-bottom: 150px; }
  .parch > .corner { width: 28px; }
}
@media (max-width: 600px) {
  body { font-size: 18px; }
  .card { flex-basis: 100%; max-width: 420px; }
  .every .ticks { grid-template-columns: 1fr; font-size: 19px; }
  .lines li { grid-template-columns: 1fr; }
  .ledger { padding: 20px 16px 22px; background: repeating-linear-gradient(#0000 0 35px, #6f8fb024 35px 36px), #fbf5e4; }
  .nums { grid-template-columns: 1fr; }
  .nums div + div { border-left: 0; border-top: 1px solid var(--gold); }
  .tabs a { min-height: 46px; letter-spacing: .02em; }
  .orn { width: 30px; }
  .motto .orn { display: none; }
  .tag::before, .tag::after { content: none; }
  .tag { letter-spacing: .1em; }
  .facts-list li { flex-direction: column; gap: 0; }
  .facts-list b { text-align: left; }
  .controls .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  .card .art, .btn, .tabs a { transition: none; }
  .js .lines li.on, .js .closed.on, .js .ticket div.on dd span, .js .stamp.on { transition: none; }
  .js .stamp { transform: rotate(-11deg); }
}

/* Telephone and license numbers use plain upright figures so they are easy to read and dial. */
.tel, .lic, .callnow, .facts-list b, .nums b, footer, .btn, .card b, .price { font-variant-numeric: lining-nums; }
