/* Wood Design site styles. Fonts are self-hosted (see /fonts/README.txt). */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/fraunces-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("/fonts/fraunces-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2"); }
:root {
	--cream: #fbf8e4;
	--sand: #efe6c6;
	--paper: #ffffff;
	--walnut: #5b3a1e;
	--ink: #2e2a24;
	--muted: #6b6558;
	--blue: #0a5f8f;
	--blue-dark: #07486d;
	--line: #e6dfc3;
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font: 1.0625rem/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---- header ---- */
.top {
	max-width: 1080px;
	margin: 0 auto;
	padding: 28px 24px 0;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	flex-wrap: wrap;
}
.logo { display: block; text-decoration: none; }
.logo img { width: clamp(260px, 44vw, 440px); height: auto; }
.logo small { display: block; font: 500 .8125rem/1.3 var(--sans); letter-spacing: .01em; color: var(--muted); margin-top: 4px; }
.callme { font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; padding-bottom: 6px; }
.callme span { display: block; font-weight: 500; font-size: .8125rem; color: var(--muted); }
.callme:hover { color: var(--blue); }

/* ---- the card ---- */
.card {
	max-width: 1080px;
	margin: 18px auto 0;
	background: var(--paper);
	border-radius: 6px 6px 0 0;
	box-shadow: 0 1px 0 var(--line), 0 18px 40px -22px rgba(70, 48, 20, .45);
	overflow: hidden;
}
.nav { border-bottom: 1px solid var(--line); padding: 0 24px; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; flex-wrap: wrap; gap: 0 6px; }
.nav a {
	display: block;
	padding: 15px 14px 13px;
	text-decoration: none;
	color: var(--ink);
	font-weight: 600;
	font-size: .975rem;
	border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--blue); }
.nav li.has-sub > a::after { content: ""; display: inline-block; margin-left: 7px; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.nav a[aria-current="page"], .nav a[data-trail] { border-bottom-color: var(--blue); color: var(--blue-dark); }
.nav li { position: relative; }
.nav .sub { display: none; position: absolute; left: 0; top: 100%; min-width: 14rem; z-index: 5; background: var(--paper); border: 1px solid var(--line); border-top: 0; box-shadow: 0 14px 24px -14px rgba(60,40,15,.45); padding: 6px 0; }
.nav li:hover > .sub, .nav li:focus-within > .sub { display: block; }
.nav .sub a { padding: 9px 18px; border-bottom: 0; font-weight: 500; white-space: nowrap; }
.nav .sub a:hover, .nav .sub a[aria-current="page"] { background: #faf6e2; }
.nav .sub .sub { left: 100%; top: -7px; border-top: 1px solid var(--line); }

h1, h2, h3 { font-family: var(--serif); color: var(--blue); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 1.95rem); }
h3 { font-size: 1.25rem; color: var(--walnut); }
p { margin: 0 0 1em; max-width: 62ch; }
.wrap { padding: 0 clamp(20px, 5vw, 56px); }

/* ---- hero ---- */
.hero {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 40px;
	align-items: center;
	padding-top: clamp(32px, 6vw, 64px);
	padding-bottom: clamp(40px, 6vw, 72px);
}
.hero p.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink); margin: 20px 0 28px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
	display: inline-block;
	padding: 13px 24px;
	border-radius: 4px;
	font-weight: 700;
	text-decoration: none;
	border: 2px solid var(--walnut);
	background: var(--walnut);
	color: #fff8e8;
	line-height: 1.2;
}
.btn:hover { background: #432a14; border-color: #432a14; color: #fff; }
.btn.alt { background: transparent; color: var(--walnut); }
.btn.alt:hover { background: var(--sand); color: var(--walnut); }

/* polaroids: the one memorable thing, carried over from the original frames */
.polaroid {
	margin: 0;
	background: #fff;
	padding: 10px 10px 0;
	box-shadow: 0 1px 2px rgba(60,40,15,.25), 0 14px 26px -12px rgba(60,40,15,.5);
	border: 1px solid #ece6d2;
}
.polaroid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sand); }
.polaroid figcaption { font: italic 500 .975rem/1 var(--serif); color: var(--ink); padding: 12px 4px 14px; text-align: center; }
.stack { position: relative; padding: 0 0 70px; }
.stack .polaroid:first-child { transform: rotate(-2.2deg); width: 88%; }
.stack .polaroid:first-child figcaption { text-align: left; padding-left: 8px; }
.stack .polaroid:last-child { position: absolute; right: 0; bottom: 0; width: 52%; transform: rotate(3.4deg); }

/* ---- sections ---- */
.band { border-top: 1px solid var(--line); padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(36px, 5vw, 56px); }
.band.tint { background: #fdfbef; }
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 24px 56px; }
.services { list-style: none; margin: 0; padding: 0; }
.services li { padding: 20px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 11rem 1fr; gap: 6px 28px; }
.services li:first-child { border-top: 0; padding-top: 0; }
.services p { margin: 0; }

.recent { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 28px; }
.recent .polaroid:nth-child(1) { transform: rotate(-1.4deg); }
.recent .polaroid:nth-child(2) { transform: rotate(1deg); }
.recent .polaroid:nth-child(3) { transform: rotate(-.6deg); }
.more { margin-top: 30px; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.facts strong { display: block; font: 700 1.1rem/1.3 var(--serif); color: var(--walnut); margin-bottom: 4px; }
.facts p { margin: 0; font-size: 1rem; color: var(--muted); }

.contact { background: var(--walnut); color: #fff8e8; border-top: 0; }
.contact h2 { color: #fff; }
.contact a { color: #fff; }
.contact .split { align-items: center; }
.phones { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0; }
.phones a { font: 700 clamp(1.5rem, 3.4vw, 2rem)/1.2 var(--serif); text-decoration: none; border-bottom: 2px solid rgba(255,248,232,.4); }
.phones a:hover { border-bottom-color: #fff; }
.phones span { display: block; font: 500 .875rem/1.4 var(--sans); color: #e9d9b8; margin-bottom: 2px; }
.contact address { font-style: normal; margin-top: 18px; color: #e9d9b8; }

footer { max-width: 1080px; margin: 0 auto; padding: 22px 24px 40px; color: var(--muted); font-size: .875rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }

/* ---- portfolio ---- */
.pagehead { padding-top: clamp(32px, 5vw, 56px); padding-bottom: 8px; }
.pagehead p { margin: 14px 0 0; font-size: 1.15rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 30px 26px; margin-top: 26px; }
.gallery .polaroid:nth-child(4n+1) { transform: rotate(-1.2deg); }
.gallery .polaroid:nth-child(4n+2) { transform: rotate(.9deg); }
.gallery .polaroid:nth-child(4n+3) { transform: rotate(-.5deg); }
.gallery .polaroid:nth-child(4n) { transform: rotate(1.3deg); }
.gallery a { display: block; }
.gallery .polaroid { transition: transform .2s ease, box-shadow .2s ease; }
.gallery .polaroid:hover { transform: rotate(0) translateY(-3px); }

@media (max-width: 820px) {
	.hero, .split { grid-template-columns: 1fr; }
	.stack { max-width: 520px; }
	.services li { grid-template-columns: 1fr; }
	.recent { grid-template-columns: 1fr; max-width: 420px; }
	.facts { grid-template-columns: 1fr; gap: 18px; }
	.nav { padding: 0 12px; }
	.nav a { padding: 12px 10px 10px; }
	.nav li.has-sub { display: flex; flex-wrap: wrap; align-items: center; }
	.nav li.has-sub > a::after { display: none; }
	.nav .sub, .nav .sub .sub { display: flex; flex-wrap: wrap; position: static; min-width: 0; border: 0; box-shadow: none; padding: 0; background: none; }
	.nav .sub a { padding: 12px 10px 10px; font-weight: 600; white-space: normal; }
	.nav .sub a:hover { background: none; }
}
@media (prefers-reduced-motion: reduce) { .gallery .polaroid { transition: none; } html { scroll-behavior: auto; } }

/* ---- page content (HTML saved by the admin editor) ---- */
.prose { display: flow-root; padding-top: clamp(28px, 5vw, 52px); padding-bottom: clamp(32px, 5vw, 56px); }
.prose h1 { margin-bottom: .5em; }
.prose h2 { margin: 1.4em 0 .4em; }
.prose h3 { margin: 1.2em 0 .3em; }
.prose ul, .prose ol { max-width: 62ch; padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose ul.gallery { max-width: none; padding: 0; list-style: none; }
.prose .gallery li { margin: 0; }
.prose img { height: auto; }
.prose img[align="right"], .prose img[style*="CLEAR"] { float: right; margin: 0 0 18px 32px; max-width: 42%; }
.prose img[align="left"] { float: left; margin: 0 32px 18px 0; max-width: 42%; }
.prose img[width="16"] { display: inline; vertical-align: -2px; margin-right: 6px; }
.prose p[align="center"] { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; text-align: center; max-width: none; }
.prose a[rel^="lightbox"] { cursor: zoom-in; }
.prose table { border-collapse: collapse; max-width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.home-intro .prose { padding: 0; }
.home-intro .prose > p:first-of-type { font-size: 1.2rem; line-height: 1.6; }
.editor-body { background: #fff; padding: 16px; }

/* ---- polaroid floated beside text ---- */
.prose figure.polaroid.float-right { float: right; clear: right; width: 270px; margin: 0 0 22px 36px; transform: rotate(1.6deg); }
.prose figure.polaroid.float-left { float: left; clear: left; width: 270px; margin: 0 36px 22px 0; transform: rotate(-1.6deg); }
.polaroid.float-right img, .polaroid.float-left img { aspect-ratio: auto; height: auto; }

/* ---- map ---- */
.map-block { margin: 28px 0 0; }
.map { height: 380px; isolation: isolate; border: 1px solid var(--line); border-radius: 6px; background: #ebe6d0; font: inherit; }
.map__nojs { display: block; padding: 20px; color: var(--muted); }
.map-block figcaption { margin-top: 10px; font-size: .95rem; }
.map-pin { background: none; border: 0; }
.map .leaflet-tooltip { font: 600 .9rem/1.2 var(--sans); color: var(--ink); border-color: var(--line); }
@media (max-width: 820px) { .map { height: 300px; } }

/* ---- lightbox ---- */
.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lb::backdrop { background: rgba(24, 18, 10, .88); }
.lb-inner { height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 20px 64px 12px; }
.lb img { max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto; background: #fff; padding: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.lb-cap { color: #fff8e8; font: italic 500 1rem/1.4 var(--serif); padding-top: 12px; min-height: 2.2em; text-align: center; }
.lb button { position: absolute; border: 0; background: rgba(255,248,232,.14); color: #fff8e8; width: 48px; height: 48px; border-radius: 50%; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.lb button:hover { background: rgba(255,248,232,.3); }
.lb .lb-close { top: 14px; right: 14px; }
.lb .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 820px) {
	.prose figure.polaroid.float-right, .prose figure.polaroid.float-left { float: none; margin: 0 auto 22px; max-width: 300px; width: 100%; transform: rotate(-1deg); }
	.prose img[align="right"], .prose img[align="left"], .prose img[style*="CLEAR"] { float: none; display: block; margin: 0 auto 18px; max-width: 280px; width: 100%; }
	.lb-inner { padding: 64px 8px 12px; }
	.lb .lb-prev { left: 4px; top: auto; bottom: 8px; transform: none; }
	.lb .lb-next { right: 4px; top: auto; bottom: 8px; transform: none; }
}
