/* Anvil Web Design: plain and personal. */

@font-face { font-family: 'DM Sans'; src: url('../fonts/dm-sans-latin.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --bg: #FBFAF7;
  --tint: #F1EEE8;
  --text: #222222;
  --muted: #5E5B56;
  --line: #DDD8CF;
  --link: #8A4A2C;
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1.125rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
h1, h2 { color: var(--text); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; margin: 0 0 1rem; }
h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 1.9rem); }
p { margin: 0 0 1rem; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow > * { max-width: 720px; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--text); color: #fff; padding: .5rem .8rem; }
.skip-link:focus { top: 8px; }

.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; padding-top: .75rem; padding-bottom: .75rem; }
.name { font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.1rem; padding: .4rem 0; }
.nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.nav a { color: var(--muted); text-decoration: none; font-size: 1rem; padding: .5rem 0; }
.nav a:hover { color: var(--text); text-decoration: underline; }

.button { display: inline-block; background: var(--text); color: #fff; text-decoration: none; font: inherit; font-weight: 600; font-size: 1rem; padding: .8rem 1.3rem; border: 0; border-radius: 6px; cursor: pointer; }
.button:hover { background: #000; color: #fff; }

.intro { padding: 2.5rem 0 3rem; }
.intro__grid { display: grid; gap: 1.75rem; }
.intro__photo { width: 100%; max-width: 190px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 8px; }
.intro__text p { color: var(--muted); }
.intro__text .button { margin-top: .5rem; }

.block { padding: 3rem 0; border-top: 1px solid var(--line); scroll-margin-top: 10px; }
.block--tint { background: var(--tint); }
.note { color: var(--muted); max-width: 40rem; }

.work { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; margin-top: 1.5rem; }
.work figure { margin: 0; }
.shot { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.shot[style] { display: flex; align-items: center; padding: 6px; background: var(--bg); }
.shot img { width: 100%; height: auto; }
.work figcaption { margin-top: .6rem; font-size: .95rem; color: var(--muted); line-height: 1.5; }
.work figcaption b { color: var(--text); }

.steps { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.steps li { margin-bottom: .6rem; padding-left: .25rem; }

.prices { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; }
.prices th, .prices td { text-align: left; vertical-align: top; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.prices th { font-weight: 600; padding-right: 1rem; }
.prices th span { display: block; font-weight: 400; font-size: .95rem; color: var(--muted); }
.prices td { white-space: nowrap; text-align: right; font-weight: 600; }
.small { font-size: .95rem; color: var(--muted); }

.qa dt { font-weight: 600; margin-top: 1.25rem; }
.qa dd { margin: .25rem 0 0; color: var(--muted); }

.form { margin-top: 1.5rem; }
.form p { margin-bottom: 1rem; }
.form label { display: block; font-size: .95rem; font-weight: 600; margin-bottom: .3rem; }
.form input:not([type=radio]), .form textarea { width: 100%; font: inherit; font-size: 1rem; padding: .65rem .75rem; border: 1px solid #BEB8AE; border-radius: 6px; background: #fff; color: var(--text); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--link); outline-offset: 0; border-color: var(--link); }
.form fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.form legend { font-size: .95rem; font-weight: 600; margin-bottom: .3rem; padding: 0; }
.form .radio { display: flex; align-items: center; gap: .6rem; font-weight: 400; font-size: 1rem; min-height: 44px; margin: 0; }
.form .radio input { width: 20px; height: 20px; accent-color: var(--text); }
.form__error { color: #A3261B; font-weight: 600; }
.form__done { background: var(--tint); padding: .8rem 1rem; border-radius: 6px; }

.foot { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; font-size: .95rem; color: var(--muted); }
.foot b { color: var(--text); }

@media (min-width: 640px) {
  .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
  .work { grid-template-columns: repeat(3, 1fr); gap: 2rem 1.5rem; }
}
@media (min-width: 860px) {
  .wrap { padding: 0 32px; }
  .intro { padding: 4.5rem 0; }
  .intro__grid { grid-template-columns: 320px 1fr; gap: 3.5rem; align-items: start; }
  .intro__photo { max-width: 320px; }
  .block { padding: 4.5rem 0; }
  .work { grid-template-columns: repeat(5, 1fr); }
}
