/* Scotty's Detail — Poppy direction: the daylight shop. Tokens in DESIGN-POPPY.md. */
@font-face { font-family: "Fraunces"; src: url("../../fonts/fraunces-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../../fonts/figtree-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../../fonts/figtree-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f6f1e7; --paper-2: #ede4d3; --ink: #1f1a14; --ink-2: #5b5146; --rule: #d9ccb6;
  --copper: #a2461a; --copper-deep: #84380f; --tint: #f2dccb;
  --f-disp: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-text: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1200px; --gut: clamp(20px, 4vw, 40px); --sec: clamp(64px, 8vw, 120px);
  --ease: cubic-bezier(.2, .7, .2, 1); --head-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background-color: var(--paper); scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--f-text); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-disp); font-weight: 600; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 1.6rem + 4.2vw, 5.5rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.4rem); line-height: 1.06; }
h3 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.7rem); line-height: 1.15; }
p { margin: 0; }
.p-wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.p-label { font: 600 12px/1.4 var(--f-text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.p-lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: var(--ink-2); max-width: 34em; }
.p-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; }
.p-skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }

/* Buttons */
.p-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 600 16px/1.2 var(--f-text); text-decoration: none; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; transition: background .16s var(--ease), color .16s var(--ease), transform .16s var(--ease); }
.p-btn:hover { background: var(--ink); color: var(--paper); }
.p-btn--copper { background: var(--copper); border-color: var(--copper); color: #fff; }
.p-btn--copper:hover { background: var(--copper-deep); border-color: var(--copper-deep); color: #fff; }
.p-btn:active { transform: translateY(1px); }
.p-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.p-link { color: var(--copper); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.p-link:hover { color: var(--copper-deep); }

/* Header */
.p-head { position: sticky; top: 0; z-index: 50; background: rgba(246, 241, 231, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.p-head-in { display: flex; align-items: center; gap: 24px; height: var(--head-h); }
.p-brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; margin-right: auto; }
.p-brand span { font: 600 24px/1 var(--f-disp); }
.p-brand small { font: 600 11px/1 var(--f-text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.p-nav { display: none; align-items: center; gap: 22px; }
.p-nav > a, .p-dd-btn { font: 600 15px/1 var(--f-text); text-decoration: none; color: var(--ink); background: none; border: 0; padding: 10px 0; cursor: pointer; }
.p-nav > a:hover, .p-dd-btn:hover, .p-nav a[aria-current="page"] { color: var(--copper); }
.p-dd { position: relative; }
.p-dd-btn::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .16s var(--ease); }
.p-dd-btn[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.p-dd-panel { position: absolute; top: calc(100% + 10px); left: -18px; min-width: 240px; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 10px; box-shadow: 0 18px 40px rgba(31, 26, 20, .12); display: none; }
.p-dd-panel a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.p-dd-panel a small { display: block; font-weight: 400; color: var(--ink-2); font-size: 14px; }
.p-dd-panel a:hover, .p-dd-panel a:focus-visible { background: var(--paper-2); }
.p-dd.is-open .p-dd-panel { display: block; }
html:not(.js) .p-dd:hover .p-dd-panel, html:not(.js) .p-dd:focus-within .p-dd-panel { display: block; }
.p-call { display: none; font: 600 15px/1 var(--f-text); text-decoration: none; color: #fff; background: var(--copper); border-radius: 999px; padding: 12px 18px; }
.p-call:hover { background: var(--copper-deep); }
.p-menu { font: 600 15px/1 var(--f-text); color: var(--ink); background: var(--paper-2); border: 1px solid var(--rule); border-radius: 999px; min-height: 44px; padding: 0 18px; cursor: pointer; }
.p-sheet { display: none; position: fixed; inset: var(--head-h) 0 0; background: var(--paper); overflow-y: auto; padding: 20px var(--gut) 40px; border-top: 1px solid var(--rule); }
html.p-nav-open .p-sheet { display: block; }
html.p-nav-open { overflow: hidden; }
.p-sheet nav { display: grid; }
.p-sheet nav a { font: 600 26px/1.15 var(--f-disp); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.p-sheet nav a[aria-current="page"] { color: var(--copper); }
.p-sheet .p-btn { margin-top: 24px; width: 100%; }
.p-sheet p { margin-top: 16px; color: var(--ink-2); font-size: 15px; }
@media (min-width: 960px) {
  .p-nav, .p-call { display: flex; }
  .p-menu { display: none; }
  .p-sheet { display: none !important; }
}

/* Hero (home) with the scoped living background */
.p-hero { position: relative; isolation: isolate; overflow: hidden; background-color: var(--paper); padding-block: clamp(28px, 5vw, 72px) clamp(56px, 7vw, 104px); }
.p-hero #site-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; pointer-events: none; }
html.no-bg .p-hero { background-image: radial-gradient(90% 70% at 80% 20%, #fffaf0 0%, #f6f1e7 50%, #ece2cf 100%); }
html.no-bg #site-bg { display: none; }
.p-hero-grid { display: grid; gap: 28px; align-items: center; }
.p-hero-copy { display: grid; gap: 18px; }
.p-hero .p-label { color: var(--ink-2); }
.p-say { font: 400 clamp(1.15rem, 1rem + .6vw, 1.5rem)/1.4 var(--f-text); }
.p-say a { font: 600 1.15em/1 var(--f-disp); color: var(--copper); text-decoration: none; border-bottom: 2px solid currentColor; white-space: nowrap; }
.p-prints { position: relative; padding-bottom: 18%; }
.p-print { margin: 0; background: #fffdf8; padding: 8px; border: 1px solid var(--rule); box-shadow: 0 1px 0 rgba(31, 26, 20, .04), 0 24px 48px -24px rgba(31, 26, 20, .35); }
.p-print img { width: 100%; }
.p-print--main { max-width: 640px; }
.p-print--main img { aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 55%; }
.p-print--small { position: absolute; right: 0; bottom: 0; width: 44%; max-width: 300px; }
.p-print--small img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 45% 60%; }
.p-print figcaption, .p-cap { font: 400 14px/1.4 var(--f-text); color: var(--ink-2); padding-top: 8px; }
@media (min-width: 960px) {
  .p-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; }
  .p-print--small { left: -12%; right: auto; bottom: -2%; width: 46%; }
  .p-prints { padding-bottom: 14%; }
}
.js .p-settle { transform: translateY(14px) rotate(-.6deg); transition: transform .6s var(--ease); }
.js .p-print--small.p-settle { transform: translateY(22px) rotate(1.4deg); }
.js .p-settle.in { transform: none; }
.js .p-print--small.p-settle.in { transform: rotate(1.2deg); }

/* Inner page hero */
.p-phero { position: relative; isolation: isolate; overflow: hidden; background-color: var(--paper); padding-block: clamp(24px, 4vw, 56px) clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--rule); }
.p-phero #site-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; pointer-events: none; }
html.no-bg .p-phero { background-image: radial-gradient(90% 70% at 80% 20%, #fffaf0 0%, #f6f1e7 55%, #ece2cf 100%); }
.p-phero-grid { display: grid; gap: 22px; align-items: center; }
.p-phero h1 { font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.6rem); }
.p-phero .p-print img { aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 960px) { .p-phero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
@media (max-width: 959px) { .p-phero .p-print img { aspect-ratio: 16 / 8; } }

/* Sections */
.p-sec { padding-block: var(--sec); }
.p-sec--alt { background: var(--paper-2); }
.p-head2 { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 760px; }
.p-split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .p-split { grid-template-columns: 1fr 1fr; gap: 64px; } .p-split--rev > :first-child { order: 2; } }
.p-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.p-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.p-list li b { font-weight: 600; }
.p-list li span { color: var(--ink-2); }
.p-list li p { grid-column: 1 / -1; color: var(--ink-2); font-size: 16px; }

/* What we detail strip */
.p-what { padding-block: 40px; border-block: 1px solid var(--rule); background: var(--paper-2); }
.p-what-in { display: grid; gap: 18px; }
.p-what-big { font: 600 clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem)/1.1 var(--f-disp); }
.p-what ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.p-what li { border: 1px solid var(--rule); background: var(--paper); border-radius: 999px; padding: 8px 14px; font-size: 15px; }
@media (min-width: 900px) { .p-what-in { grid-template-columns: auto 1fr; align-items: center; gap: 40px; } .p-what ul { justify-content: flex-end; } }

/* Signature: the job sheet */
.p-sheetjob { display: grid; gap: 20px; }
@media (min-width: 900px) { .p-sheetjob { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.p-job { background: #fffdf8; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.p-job img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.p-job-body { padding: 22px 22px 24px; display: grid; gap: 14px; }
.p-job-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.p-job-price { font: 600 15px/1.2 var(--f-text); color: var(--ink-2); white-space: nowrap; }
.p-job-price b { font: 600 28px/1 var(--f-disp); color: var(--ink); margin-left: 4px; }
.p-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.p-line { width: 100%; text-align: left; font: 400 16px/1.35 var(--f-text); color: var(--ink); background: transparent; border: 0; border-radius: 8px; padding: 8px 10px 8px 30px; position: relative; cursor: pointer; transition: background .16s var(--ease), color .16s var(--ease); }
.p-line::before { content: ""; position: absolute; left: 10px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; border: 1.5px solid var(--rule); background: var(--paper); transition: background .16s var(--ease), border-color .16s var(--ease); }
.p-line:hover { background: var(--paper-2); }
.p-line.is-lit { background: var(--tint); color: var(--ink); font-weight: 600; }
.p-line.is-lit::before { background: var(--copper); border-color: var(--copper); }
.p-line[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--copper); }
.p-sheet-say { margin-top: 24px; display: grid; gap: 14px; padding: 22px 24px; border-radius: 18px; background: var(--paper); border: 1px dashed var(--rule); }
.p-sheet-say p { font: 600 clamp(1.1rem, 1rem + .4vw, 1.35rem)/1.4 var(--f-disp); }
.p-note { font-size: 15px; color: var(--ink-2); margin-top: 16px; }

/* Photo blocks */
.p-photo { margin: 0; }
.p-photo img { width: 100%; border-radius: 18px; object-fit: cover; }
.p-photo figcaption { font-size: 14px; color: var(--ink-2); padding-top: 10px; }

/* Door band */
.p-door { background: var(--tint); padding-block: var(--sec); }
.p-door p.big { font: 600 clamp(1.9rem, 1.3rem + 2.6vw, 3.6rem)/1.1 var(--f-disp); max-width: 18em; text-wrap: balance; }
.p-door p.big em { font-style: normal; color: var(--copper); }

/* Visit */
.p-visit { display: grid; gap: 32px; }
@media (min-width: 900px) { .p-visit { grid-template-columns: 1fr 1fr; gap: 64px; } }
.p-hours { width: 100%; border-collapse: collapse; }
.p-hours th, .p-hours td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.p-hours th { font-weight: 600; width: 46%; }

/* The call */
.p-call-band { padding-block: var(--sec); text-align: center; border-top: 1px solid var(--rule); }
.p-call-band .p-actions { justify-content: center; margin-top: 26px; }
.p-call-band .p-big-tel { display: inline-block; margin-top: 14px; font: 600 clamp(2.6rem, 1.6rem + 5vw, 6rem)/1 var(--f-disp); color: var(--copper); text-decoration: none; letter-spacing: -.02em; }
.p-call-band .p-big-tel:hover { color: var(--copper-deep); }
.p-call-band .p-lede { margin-inline: auto; margin-top: 12px; }

/* Price sheet */
.p-prices { list-style: none; margin: 0; padding: 0; background: #fffdf8; border: 1px solid var(--rule); border-radius: 18px; padding: clamp(16px, 3vw, 40px); }
.p-prices li { display: grid; grid-template-columns: minmax(0, auto) 1fr auto; align-items: baseline; gap: 4px 12px; padding: 14px 0; border-bottom: 1px dashed var(--rule); }
.p-prices li:last-child { border-bottom: 0; }
.p-prices h3 { font-size: clamp(1.15rem, 1rem + .4vw, 1.4rem); }
.p-prices .dots { border-bottom: 2px dotted var(--rule); transform: translateY(-5px); }
.p-prices .amt { font: 600 clamp(1.2rem, 1rem + .6vw, 1.6rem)/1 var(--f-disp); white-space: nowrap; }
.p-prices .amt small { font: 600 11px/1 var(--f-text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-right: 6px; }
.p-prices p { grid-column: 1 / -1; color: var(--ink-2); font-size: 16px; }

/* Gallery */
.p-gal { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p-gal figure { margin: 0; }
.p-gal button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; }
.p-gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.p-gal button:hover img { transform: scale(1.03); }
.p-gal figcaption { font-size: 14px; color: var(--ink-2); padding-top: 8px; }
.p-gal .wide { grid-column: 1 / -1; }
.p-gal .wide img { aspect-ratio: 16 / 9; }
@media (min-width: 900px) { .p-gal { grid-template-columns: repeat(3, minmax(0, 1fr)); } .p-gal .wide { grid-column: span 2; } }
.p-lb { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; }
.p-lb::backdrop { background: rgba(31, 26, 20, .82); }
.p-lb figure { margin: 0; background: var(--paper); border-radius: 16px; padding: 10px; }
.p-lb img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 10px; }
.p-lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 6px 4px; font-size: 15px; }
.p-lb-bar div { display: flex; gap: 8px; }
.p-lb-bar button { min-height: 44px; min-width: 44px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper-2); font: 600 15px/1 var(--f-text); padding: 0 14px; cursor: pointer; }

/* Posts / profile links */
.p-cards { display: grid; gap: 18px; }
@media (min-width: 800px) { .p-cards { grid-template-columns: 1fr 1fr; } }
.p-card { display: grid; gap: 10px; padding: 26px; background: #fffdf8; border: 1px solid var(--rule); border-radius: 18px; text-decoration: none; transition: border-color .16s var(--ease), transform .16s var(--ease); }
.p-card:hover { border-color: var(--copper); transform: translateY(-2px); }
.p-card p { color: var(--ink-2); }
.p-card .go { color: var(--copper); font-weight: 600; }

/* Contact */
.p-contact { display: grid; gap: 40px; }
@media (min-width: 960px) { .p-contact { grid-template-columns: .9fr 1.1fr; gap: 72px; } }
.p-form { display: grid; gap: 16px; margin-top: 22px; }
.p-field { display: grid; gap: 6px; }
.p-field label { font-weight: 600; font-size: 15px; }
.p-field input, .p-field textarea { font: 400 17px/1.4 var(--f-text); color: var(--ink); background: #fffdf8; border: 1.5px solid var(--rule); border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; }
.p-field input:focus, .p-field textarea:focus { border-color: var(--copper); outline: none; box-shadow: 0 0 0 3px var(--tint); }
.p-field.is-bad input, .p-field.is-bad textarea { border-color: #a3261e; }
.p-err { color: #a3261e; font-size: 14px; min-height: 0; }
.p-status { font-size: 15px; color: var(--ink-2); }
.p-status.is-err { color: #a3261e; }
.p-form-note { font-size: 15px; color: var(--ink-2); }

/* Footer */
.p-foot { background: var(--paper-2); border-top: 1px solid var(--rule); padding-block: 64px 32px; }
.p-foot-top { display: grid; gap: 18px; padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
.p-foot-top .name { font: 600 clamp(1.8rem, 1.4rem + 1.6vw, 2.8rem)/1 var(--f-disp); }
.p-foot-top a.tel { font: 600 clamp(1.4rem, 1.2rem + 1vw, 2rem)/1 var(--f-disp); color: var(--copper); text-decoration: none; }
@media (min-width: 900px) { .p-foot-top { grid-template-columns: 1fr auto; align-items: end; } }
.p-foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-block: 32px; }
@media (min-width: 900px) { .p-foot-grid { grid-template-columns: repeat(4, 1fr); } }
.p-foot h4 { margin: 0 0 10px; font: 600 12px/1.4 var(--f-text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.p-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.p-foot a { text-decoration: none; }
.p-foot a:hover { color: var(--copper); text-decoration: underline; }
.p-foot address { font-style: normal; }
.p-foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); padding-top: 20px; border-top: 1px solid var(--rule); }

/* Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Sticky phone bar */
.p-stick { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; display: flex; gap: 8px; padding: 8px; background: rgba(31, 26, 20, .94); border-radius: 999px; transition: transform .28s var(--ease), opacity .28s var(--ease); }
.p-stick a { flex: 1 1 0; min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 999px; text-decoration: none; font: 600 15px/1.2 var(--f-text); color: #fff; }
.p-stick a:first-child { background: var(--copper); }
.p-stick a:last-child { border: 1px solid rgba(255, 255, 255, .4); }
.p-stick[data-state="hidden"] { transform: translateY(140%); opacity: 0; pointer-events: none; }
html.has-stick body { padding-bottom: 84px; }
@media (min-width: 900px) { .p-stick { display: none; } html.has-stick body { padding-bottom: 0; } }

@media (max-width: 380px) { .p-btn { width: 100%; } .p-prices li { grid-template-columns: 1fr auto; } .p-prices .dots { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-reveal], .js .p-settle { opacity: 1; transform: none; }
}
html.noanim *, html.noanim *::before, html.noanim *::after { transition: none !important; animation: none !important; }
html.noanim [data-reveal], html.noanim .p-settle { opacity: 1 !important; transform: none !important; }
