/* Painting site stylesheet. Semantic blocks with paired modifiers (.chip.is-wide, .swathe.tone-warm).
   Radius 12px on buttons only, square everywhere else. */

@font-face {
	font-family: "Playfair Display";
	src: url("/type/playfair-display-latin-600-normal.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Playfair Display";
	src: url("/type/playfair-display-latin-400-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

:root {
	--green: #1f3d2b;
	--green-deep: #142a1d;
	--green-soft: #e3ebe4;
	--warm: #fbf7ef;
	--warm-2: #f2ebdd;
	--brass: #a8853a;
	--brass-pale: #e9dcb9;
	--ink: #1d211e;
	--ink-soft: #4a524c;
	--rule: #d8cfbd;
	--display: "Playfair Display", "Iowan Old Style", Georgia, serif;
	--text: "Segoe UI", "Gill Sans", "Gill Sans MT", Candara, "Helvetica Neue", sans-serif;
	--measure: 68ch;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--warm);
	color: var(--ink);
	font-family: var(--text);
	font-size: 1.0625rem;
	line-height: 1.65;
}

img,
svg {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--green);
	text-decoration-color: var(--brass);
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--green-deep);
	text-decoration-thickness: 2px;
}

h1,
h2,
h3 {
	font-family: var(--display);
	font-weight: 600;
	line-height: 1.15;
	color: var(--green-deep);
	letter-spacing: -0.005em;
}

h1 {
	font-size: clamp(2rem, 5.5vw, 3.4rem);
	margin: 0 0 0.4em;
}

h2 {
	font-size: clamp(1.5rem, 3.4vw, 2.1rem);
	margin: 2.2em 0 0.5em;
}

h3 {
	font-size: 1.25rem;
	margin: 1.6em 0 0.4em;
}

em.accent,
.primecoat-kicker {
	font-family: var(--display);
	font-style: italic;
	font-weight: 400;
}

main {
	display: block;
}

main > *:not(.swathe):not(.primecoat) {
	max-width: var(--measure);
	margin-left: auto;
	margin-right: auto;
	padding-left: 16px;
	padding-right: 16px;
}

main > .sheet {
	max-width: 72rem;
}

.jumpto {
	position: absolute;
	left: -999px;
}

.jumpto:focus {
	left: 16px;
	top: 8px;
	background: var(--warm);
	padding: 0.4em 0.8em;
	z-index: 10;
}

/* Masthead */
.topcoat {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1.4rem;
	padding: 0.9rem 16px;
	border-bottom: 3px double var(--brass);
	background: var(--warm);
}

.maker {
	font-family: var(--display);
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--green-deep);
	text-decoration: none;
	margin-right: auto;
}

.maker .amp {
	font-style: italic;
	font-weight: 400;
	color: var(--brass);
}

.maker.is-small {
	font-size: 1.15rem;
	color: var(--warm);
	margin: 0 0 0.4em;
}

.topcoat-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 1.1rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.95rem;
}

.topcoat-nav a {
	text-decoration: none;
	color: var(--ink);
}

.topcoat-nav a[aria-current="page"] {
	color: var(--green);
	border-bottom: 2px solid var(--brass);
}

.phoneline {
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

/* Breadcrumb */
.crumbline ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	padding: 0;
	margin: 1.2rem 0 0;
	font-size: 0.85rem;
	color: var(--ink-soft);
}

.crumbline li + li::before {
	content: "/";
	margin-right: 0.3rem;
	color: var(--brass);
}

/* Opening plate (hero) */
.primecoat {
	background: var(--green);
	color: var(--warm);
	padding: 3rem 16px 2.6rem;
}

.primecoat > * {
	max-width: 52rem;
	margin-left: auto;
	margin-right: auto;
}

.primecoat h1 {
	color: var(--warm);
}

.primecoat-kicker {
	color: var(--brass-pale);
	font-size: 1.15rem;
	margin-bottom: 0.4rem;
}

.primecoat a:not(.daub) {
	color: var(--brass-pale);
}

.primecoat.tone-warm {
	background: var(--warm-2);
	color: var(--ink);
}

.primecoat.tone-warm h1 {
	color: var(--green-deep);
}

/* Bands */
.swathe {
	padding: 2.4rem 16px;
	margin: 3rem 0 0;
}

.swathe > * {
	max-width: var(--measure);
	margin-left: auto;
	margin-right: auto;
}

.swathe.tone-green {
	background: var(--green);
	color: var(--warm);
}

.swathe.tone-green h2 {
	color: var(--warm);
	margin-top: 0;
}

.swathe.tone-warm {
	background: var(--warm-2);
}

/* Buttons: the only rounded things */
.daub {
	display: inline-block;
	padding: 0.7em 1.3em;
	border-radius: 12px;
	font-weight: 600;
	text-decoration: none;
	border: 2px solid var(--brass);
	cursor: pointer;
	font: inherit;
	font-weight: 600;
}

.daub.is-solid {
	background: var(--brass);
	color: var(--green-deep);
}

.daub.is-line {
	background: transparent;
	color: inherit;
}

.cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
}

/* The direct answer under a heading */
.gist {
	border-left: 4px solid var(--brass);
	padding: 0.2rem 0 0.2rem 1rem;
	font-size: 1.1rem;
}

/* Tiles: service and post cards */
.chipboard {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1rem;
	list-style: none;
	padding: 0;
}

.chip {
	border: 1px solid var(--rule);
	background: #fff;
	padding: 1.1rem 1.2rem;
}

.chip h3 {
	margin-top: 0;
}

.chip.is-wide {
	grid-column: 1 / -1;
}

.chip.tone-green {
	background: var(--green-soft);
}

/* Ledgers: price and comparison tables */
.tally-wrap {
	overflow-x: auto;
}

.tally {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
	background: #fff;
}

.tally th,
.tally td {
	text-align: left;
	padding: 0.55rem 0.7rem;
	border-bottom: 1px solid var(--rule);
	vertical-align: top;
}

.tally thead th {
	background: var(--green);
	color: var(--warm);
	font-weight: 600;
}

.tally caption {
	caption-side: bottom;
	text-align: left;
	font-size: 0.85rem;
	color: var(--ink-soft);
	padding-top: 0.5rem;
}

/* Notes */
.marginal {
	border: 1px solid var(--rule);
	background: #fff;
	padding: 1rem 1.2rem;
	margin: 1.5rem 0;
}

.marginal.is-lead {
	border-color: var(--brass);
	background: var(--brass-pale);
}

.marginal.is-safety {
	border-left: 6px solid var(--green);
}

.marginal h3 {
	margin-top: 0;
}

/* Coat sequences */
.coats {
	counter-reset: coat;
	list-style: none;
	padding: 0;
}

.coats li {
	counter-increment: coat;
	position: relative;
	padding: 0.2rem 0 0.8rem 2.6rem;
}

.coats li::before {
	content: counter(coat);
	position: absolute;
	left: 0;
	top: 0;
	font-family: var(--display);
	font-size: 1.6rem;
	line-height: 1;
	color: var(--brass);
}

/* Swatches */
.swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
	gap: 0.8rem;
	list-style: none;
	padding: 0;
}

.swatch {
	border: 1px solid var(--rule);
	background: #fff;
	font-size: 0.85rem;
}

.swatch svg {
	display: block;
	width: 100%;
}

.swatch p {
	margin: 0.4rem 0.5rem 0.5rem;
}

/* Figures */
.drawdown {
	margin: 2rem auto;
}

.drawdown svg {
	display: block;
	width: 100%;
	background: #fff;
	border: 1px solid var(--rule);
}

.drawdown figcaption {
	font-size: 0.88rem;
	color: var(--ink-soft);
	margin-top: 0.5rem;
}

/* Questions */
.askings dt {
	font-family: var(--display);
	font-weight: 600;
	font-size: 1.15rem;
	color: var(--green-deep);
	margin-top: 1.4rem;
}

.askings dd {
	margin: 0.3rem 0 0;
}

/* Sources */
.reading-list {
	font-size: 0.88rem;
	color: var(--ink-soft);
}

/* Quote form */
.quote-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 0.2rem 1rem;
	background: #fff;
	border: 1px solid var(--rule);
	padding: 1.2rem;
	color: var(--ink);
}

.fillin {
	margin: 0 0 0.6rem;
}

.fillin label {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 0.2rem;
}

.fillin input,
.fillin select,
.fillin textarea {
	width: 100%;
	font: inherit;
	padding: 0.5rem 0.6rem;
	border: 1px solid var(--rule);
	background: var(--warm);
	border-radius: 0;
}

.fillin.is-wide,
.quote-form .fine,
.quote-form p:last-child {
	grid-column: 1 / -1;
}

.fillin.is-hidden {
	position: absolute;
	left: -999px;
}

.fine {
	font-size: 0.85rem;
	color: var(--ink-soft);
}

/* Footer */
.baseboard {
	background: var(--green-deep);
	color: var(--warm-2);
	padding: 2.4rem 16px 1.6rem;
	margin-top: 0;
}

.baseboard a {
	color: var(--warm);
}

.baseboard-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	gap: 1.4rem;
	max-width: 72rem;
	margin: 0 auto;
}

.baseboard-list {
	list-style: none;
	padding: 0;
	margin: 0;
	line-height: 2;
}

.baseboard .fine {
	max-width: 72rem;
	margin: 1.6rem auto 0;
	color: var(--brass-pale);
}

@media (min-width: 48rem) {
	.topcoat {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

/* Rough cost guide (shown only when estimate.js runs) */
.tinter {
	border: 2px solid var(--brass);
	background: #fff;
	padding: 1.2rem;
	margin-top: 2.4rem;
}

.tinter[hidden] {
	display: none;
}

.tinter h2 {
	margin-top: 0;
}

.tinter-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	gap: 0.2rem 1rem;
}

.tinter-form .is-wide {
	grid-column: 1 / -1;
}

.tinter-form input[type="checkbox"] {
	width: auto;
	margin-right: 0.4rem;
}

.tinter-out output {
	display: block;
	font-family: var(--display);
	font-size: 1.3rem;
	color: var(--green-deep);
	border-left: 4px solid var(--brass);
	padding-left: 0.8rem;
}
