/* PNW Woodturner — warm paper, olive accents, and room for the original work. */
:root {
  --paper: #f7f7f2;
  --white: #fffefb;
  --ink: #29352b;
  --muted: #586354;
  --olive: #6c765b;
  --olive-dark: #465a3e;
  --olive-hover: #34452e;
  --sage: #e9eee4;
  --rule: #d8ddd2;
  --radius: 16px;
  --card-shadow: 0 4px 18px rgba(41, 53, 43, .04);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --page-width: 1200px;
  --gutter: clamp(22px, 4.5vw, 64px);
  --header-height: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: calc(var(--header-height) + 16px); }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
main { display: flex; flex: 1 0 auto; flex-direction: column; }
::selection { color: var(--white); background: var(--olive-dark); }
a { color: var(--olive-dark); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--olive-hover); }
button { font: inherit; }
button, a, img { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
/* Safari can select an image on a touch-and-hold and tint it with ::selection. */
img { display: block; max-width: 100%; height: auto; -webkit-user-select: none; user-select: none; }
img::selection { color: transparent; background: transparent; }
svg { display: block; }
figure { margin: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; line-height: 1.2; letter-spacing: -.035em; overflow-wrap: break-word; }
h2 { margin-bottom: 24px; font-size: 34px; }
h3 { font-size: 26px; }
p { margin-bottom: 1.2em; }
ul, ol { padding-left: 1.3em; }
:focus-visible { outline: 3px solid var(--olive-dark); outline-offset: 4px; }
[hidden] { display: none !important; }
.container { width: min(var(--page-width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: 46px; }
.compact-section { padding-block: 34px; }

.skip-link { position: fixed; top: -120px; left: 20px; z-index: 100; min-height: 48px; padding: 11px 20px; border: 2px solid var(--white); border-radius: 4px; color: var(--white); background: var(--olive-dark); font-size: 18px; }
.skip-link:focus { top: 12px; color: var(--white); }

/* Familiar navigation with a clear active page and generous click targets. */
.site-header { position: sticky; top: 0; z-index: 20; flex-shrink: 0; color: var(--ink); background: var(--white); border-bottom: 1px solid var(--rule); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 96px; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 13px; min-height: 48px; color: var(--olive-dark); text-decoration: none; }
.brand:hover { color: var(--olive-hover); }
.brand > svg { width: 34px; height: 48px; flex-shrink: 0; }
.brand-name { font-family: var(--serif); font-size: 30px; line-height: 1.15; letter-spacing: -.04em; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 5px; }
.nav-link { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 13px; border-radius: 9px; color: var(--ink); font-size: 18px; line-height: 1.5; text-decoration: none; white-space: nowrap; }
.nav-link:hover { color: var(--olive-dark); background: var(--sage); text-decoration: underline; text-underline-offset: 5px; }
.nav-link[aria-current='page'] { color: var(--olive-dark); background: var(--sage); font-weight: 650; }
.menu-toggle { display: none; align-items: center; justify-content: center; gap: 9px; min-height: 48px; min-width: 48px; padding: 9px 12px; border: 1px solid var(--olive-dark); border-radius: 9px; color: var(--olive-dark); background: transparent; font-size: 18px; line-height: 1.5; }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle:hover, .menu-toggle[aria-expanded='true'] { color: var(--olive-dark); background: var(--sage); }

.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 14px 22px; border: 1px solid transparent; border-radius: 10px; font-size: 18px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.button-primary { border-color: var(--olive-dark); color: var(--white); background: var(--olive-dark); }
.button-primary:hover { border-color: var(--olive-hover); color: var(--white); background: var(--olive-hover); }
.button-secondary { border-color: var(--olive-dark); color: var(--olive-dark); background: var(--white); }
.button-secondary:hover { color: var(--olive-hover); border-color: var(--olive-hover); background: var(--sage); }

/* Copy and photography have their own space at every screen size. */
.home-welcome { display: flex; flex: 1 0 auto; align-items: center; background: var(--paper); }
.home-welcome-inner { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(36px, 5vw, 76px); padding-block: 56px; }
.home-welcome-copy { max-width: 480px; padding-block: 20px; }
.home-welcome-figure { min-width: 0; }
.home-welcome-photo { width: auto; height: auto; max-height: 560px; margin-inline: auto; border: 1px solid var(--rule); border-radius: 22px; background: #e5e4dc; object-fit: contain; }
.home-welcome-figure figcaption { margin-top: 12px; color: var(--muted); font-size: 18px; line-height: 1.5; text-align: center; }
.home-title { margin-bottom: 24px; font-size: clamp(54px, 5.3vw, 76px); font-weight: 600; line-height: 1.06; letter-spacing: -.055em; }
.home-tagline { max-width: 440px; margin-bottom: 0; color: var(--muted); font-size: 22px; line-height: 1.65; }
.home-selection { padding-block: 44px 56px; border-top: 1px solid var(--rule); background: var(--white); }
.section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 26px; }
.section-heading h2 { margin-bottom: 0; font-size: 32px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-size: 18px; font-weight: 600; }
.selected-work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.selected-work-link { display: block; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); background: var(--white); box-shadow: var(--card-shadow); text-decoration: none; }
.selected-work-link:hover { color: var(--ink); border-color: var(--olive-dark); }
.selected-work { margin: 0; }
.selected-work img { width: 100%; height: 250px; padding: 12px; background: var(--paper); object-fit: contain; }
.selected-work figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 80px; padding: 16px 20px; border-top: 1px solid var(--rule); color: var(--ink); font-family: var(--sans); font-size: 19px; font-weight: 500; line-height: 1.5; }
.work-arrow { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; color: var(--olive-dark); background: var(--sage); font-size: 22px; }
.selected-work-link:hover figcaption > span:first-child { color: var(--olive-dark); text-decoration: underline; text-underline-offset: 4px; }

/* One consistent hierarchy for the original text, books, and flyers. */
.page-hero { padding-block: 48px 40px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.page-title { margin-bottom: 0; font-size: clamp(40px, 4.2vw, 54px); line-height: 1.16; }
.page-hero .page-title::after { display: block; width: 48px; height: 4px; margin-top: 22px; border-radius: 2px; background: var(--olive); content: ''; }
.page-lead { max-width: 850px; margin: 14px 0 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 64px; }
.about-layout { row-gap: 38px; }
.about-introduction { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 32px; padding: 32px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); box-shadow: var(--card-shadow); }
.about-portrait { grid-column: 2; grid-row: 2; }
.about-details { grid-column: 1; grid-row: 2; }
.professional-logo { width: 160px; max-width: 100%; height: auto; border-radius: 4px; background: #fff; }
.prose { max-width: 770px; }
.membership-copy { max-width: none; }
.prose h2 { margin-top: 31px; margin-bottom: 17px; font-size: 34px; }
.prose h2:first-child { margin-top: 0; }
.prose p:last-child { margin-bottom: 0; }
.portrait-image { width: 100%; height: auto; max-height: 520px; border: 1px solid var(--rule); border-radius: var(--radius); object-fit: contain; }
.past-demos { margin-top: 40px; padding-top: 34px; border-top: 1px solid var(--rule); }
.past-demos h2 { margin-bottom: 23px; font-size: 34px; }
.past-demo-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px 34px; margin: 0; padding-left: 20px; }
.past-demo-list li { margin: 0; padding-left: 3px; font-size: 18px; }
.past-demo-list li::marker { color: var(--olive-dark); }
.simple-book-list { margin: 0; padding: 0; border-top: 1px solid var(--rule); list-style: none; }
.simple-book-list li { margin: 0; padding-block: 18px 10px; border-bottom: 1px solid var(--rule); }
.simple-book-list h3 { margin: 0; font-size: 24px; line-height: 1.3; }
.simple-book-list a { display: inline-block; max-width: 100%; min-height: 48px; padding-block: 10px; font-size: 18px; line-height: 1.6; }
.simple-book-list span { color: var(--muted); font-size: 18px; white-space: nowrap; }
.simple-intro { max-width: 880px; margin-bottom: 30px; color: var(--ink); font-size: 18px; }
.demo-grid, .simple-demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 29px; }
.demo-card { display: flex; padding: 20px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); box-shadow: var(--card-shadow); }
.demo-card:has(.flyer-link:hover) { border-color: var(--olive-dark); }
.flyer-link { display: flex; flex: 1; flex-direction: column; align-items: flex-start; width: 100%; min-height: 48px; color: var(--ink); text-decoration: none; }
.flyer-link:hover { color: var(--ink); }
.flyer-preview { width: 100%; height: 330px; object-fit: contain; object-position: top center; background: var(--white); }
.flyer-link h2 { margin: 20px 0 4px; font-size: 25px; line-height: 1.3; }
.flyer-link:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.simple-rates { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--rule); }
.simple-rates a { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 100%; min-height: 48px; padding-block: 10px; font-size: 18px; }
.rates-preview { width: min(100%, 380px); max-height: 480px; object-fit: contain; }

/* The complete objects remain visible in every photograph. */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 28px; scroll-margin-top: 12px; }
.gallery-item { margin: 0; scroll-margin-top: 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); box-shadow: var(--card-shadow); }
.gallery-item:target { outline: 2px solid var(--olive-dark); outline-offset: 4px; }
.gallery-link { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 15px 15px 0 0; color: var(--olive-dark); background: var(--white); text-decoration: none; }
.gallery-link::after { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--rule); border-radius: 50%; color: var(--olive-dark); background: var(--white); font-size: 26px; line-height: 1; content: '+'; }
.gallery-link:hover::after { border-color: var(--olive-dark); }
.gallery-image { width: 100%; height: 275px; padding: 10px; object-fit: contain; }
.gallery-caption { min-height: 78px; padding: 16px 17px 18px; border-top: 1px solid var(--rule); }
.gallery-caption h2 { margin: 0; font-family: var(--sans); font-size: 19px; font-weight: 500; line-height: 1.5; letter-spacing: 0; }
.gallery-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 34px; padding-top: 25px; border-top: 1px solid var(--rule); }
.page-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 48px; padding: 9px 12px; border: 1px solid var(--olive-dark); border-radius: 9px; color: var(--olive-dark); background: var(--white); font-size: 18px; line-height: 1.5; }
.page-button:hover:not(:disabled) { background: var(--sage); }
.page-button[aria-current='page'] { color: var(--white); background: var(--olive-dark); }
.page-button:disabled { border-color: var(--rule); color: #7b8271; background: var(--paper); opacity: 1; }
.gallery-count { flex-basis: 100%; margin: 9px 0 0; color: var(--muted); font-size: 18px; text-align: center; }

body.lightbox-open { overflow: hidden; }
dialog.lightbox { width: min(1100px, calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 40px); padding: 0; overflow: auto; border: 0; border-radius: var(--radius); color: var(--ink); background: var(--white); }
dialog.lightbox::backdrop { background: rgba(26, 32, 22, .87); }
.lightbox-inner { position: relative; display: flex; flex-direction: column; padding: 69px 28px 25px; }
.lightbox-close { position: absolute; top: 12px; right: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; min-width: 48px; padding: 8px 13px; border: 1px solid var(--olive-dark); border-radius: 9px; color: var(--olive-dark); background: var(--white); font-size: 18px; }
.lightbox-close:hover { background: var(--sage); }
.lightbox-image { width: 100%; height: auto; max-height: calc(100dvh - 230px); object-fit: contain; }
.lightbox-caption { margin: 19px 0 0; font-size: 18px; line-height: 1.5; text-align: center; }
.lightbox-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.lightbox-controls .button { min-width: 80px; min-height: 48px; padding: 9px 8px; font-size: 18px; }
.lightbox-counter { min-width: 55px; color: var(--muted); font-size: 18px; white-space: nowrap; text-align: center; }

/* Postal contact, paired with a complete photograph of the work. */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 74px; padding-block: 42px 54px; }
.simple-contact { max-width: 500px; }
.simple-contact p { margin-bottom: 0; font-size: 18px; }
.simple-contact address { margin: 25px 0; padding: 16px 0 16px 23px; border-left: 3px solid var(--olive); font-family: var(--serif); font-size: 26px; line-height: 1.65; font-style: normal; }
.contact-photo { margin: 0; padding: 20px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); box-shadow: var(--card-shadow); }
.contact-photo img { width: 100%; height: auto; max-height: 410px; border-radius: 8px; object-fit: contain; }

.simple-footer { display: flex; flex-shrink: 0; align-items: center; justify-content: center; min-height: 78px; padding: 23px var(--gutter); color: var(--olive-dark); background: var(--sage); border-top: 1px solid var(--rule); font-size: 18px; text-align: center; }
.simple-footer p { margin: 0; }
.error-page { min-height: 380px; padding-block: 80px; text-align: center; }
.error-page .page-title { margin-bottom: 24px; }
.error-page a { display: inline-flex; align-items: center; min-height: 48px; font-size: 18px; }

@media (max-width: 1120px) {
  .header-inner { gap: 22px; }
  .brand-name { font-size: 28px; }
  .main-nav { gap: 2px; }
  .nav-link { padding-inline: 11px; }
  .home-title { font-size: 60px; }
  .content-grid { gap: 42px; grid-template-columns: minmax(0, 1fr) 290px; }
  .about-layout { row-gap: 38px; }
  .demo-grid, .simple-demo-grid { gap: 24px; }
  .contact-grid { gap: 46px; }
}

@media (max-width: 920px) {
  :root { --header-height: 87px; }
  .header-inner { min-height: 87px; }
  .menu-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: calc(100% + 1px); right: calc(-1 * var(--gutter)); left: calc(-1 * var(--gutter)); display: none; align-items: stretch; gap: 5px; max-height: calc(100svh - var(--header-height)); padding: 14px var(--gutter) 21px; overflow-y: auto; overscroll-behavior: contain; border-bottom: 1px solid var(--rule); background: var(--white); box-shadow: 0 12px 20px rgba(41, 53, 43, .08); }
  .main-nav.is-open { display: flex; flex-direction: column; }
  .main-nav .nav-link { min-height: 54px; padding: 10px 14px; font-size: 18px; }
  .home-welcome { display: block; flex-grow: 0; min-height: 0; }
  .home-welcome-inner { grid-template-columns: 1fr; gap: 32px; padding-block: 40px; }
  .home-welcome-copy { max-width: 650px; padding: 0; }
  .home-welcome-figure { width: 100%; max-width: 650px; }
  .home-welcome-photo { max-height: 500px; }
  .home-title { font-size: 64px; }
  .home-tagline { max-width: 650px; font-size: 21px; }
  .selected-work-grid { gap: 22px; }
  .selected-work img { height: 220px; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 34px; }
  .about-layout { row-gap: 34px; }
  .past-demo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flyer-preview { height: 310px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .gallery-image { height: 280px; }
}

@media (max-width: 700px) {
  :root { --gutter: 23px; --header-height: 84px; }
  .header-inner { min-height: 84px; gap: 12px; }
  .brand { gap: 10px; }
  .brand-name { font-size: 26px; }
  .brand > svg { width: 29px; height: 43px; }
  .home-welcome-inner { gap: 28px; padding-block: 32px; }
  .home-welcome-photo { max-height: 380px; border-radius: var(--radius); }
  .home-title { margin-bottom: 20px; font-size: 52px; }
  .home-tagline { font-size: 20px; }
  .button-row { margin-top: 24px; gap: 10px; }
  .button { padding-inline: 19px; }
  .home-selection { padding-block: 33px 38px; }
  .section-heading { margin-bottom: 22px; gap: 4px 20px; }
  .section-heading h2 { font-size: 30px; }
  .selected-work-grid { grid-template-columns: 1fr; gap: 27px; }
  .selected-work img { height: 280px; }
  .section { padding-block: 35px; }
  .compact-section { padding-block: 29px; }
  .page-hero { padding-block: 27px 26px; }
  .page-title { font-size: clamp(32px, 7vw, 40px); }
  .page-hero .page-title::after { margin-top: 15px; }
  .content-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-layout { row-gap: 30px; }
  .about-introduction, .about-portrait, .about-details { grid-column: 1; grid-row: auto; }
  .about-introduction { grid-template-columns: 1fr; gap: 22px; padding: 23px; }
  .professional-logo { margin-inline: auto; }
  .portrait-image { width: min(100%, 400px); max-height: 520px; }
  .prose h2 { font-size: 31px; }
  .past-demos { margin-top: 32px; padding-top: 29px; }
  .past-demos h2 { font-size: 31px; }
  .past-demo-list { grid-template-columns: 1fr; gap: 12px; }
  .demo-grid, .simple-demo-grid { grid-template-columns: 1fr; gap: 24px; }
  .demo-card { padding: 18px; }
  .flyer-preview { height: 385px; }
  .flyer-link h2 { font-size: 25px; }
  .gallery-grid { gap: 23px 16px; }
  .gallery-image { height: 235px; }
  .gallery-caption { padding: 14px 13px 16px; min-height: 75px; }
  .gallery-caption h2 { font-size: 18px; }
  .gallery-pagination { gap: 6px; margin-top: 29px; padding-top: 23px; }
  .page-button { padding-inline: 8px; }
  .contact-grid { grid-template-columns: 1fr; gap: 31px; padding-block: 31px 40px; }
  .simple-contact address { padding-left: 20px; font-size: 24px; }
  .contact-photo { width: min(100%, 500px); margin-inline: auto; }
  .contact-photo img { max-height: 390px; }
  dialog.lightbox { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .lightbox-inner { padding: 68px 14px 23px; }
  .lightbox-controls { gap: 6px; }
  .lightbox-image { max-height: calc(100dvh - 220px); }
  .simple-footer { min-height: 68px; padding-block: 19px; }
}

@media (max-width: 400px) {
  :root { --gutter: 18px; }
  .brand-name { font-size: 24px; }
  .brand > svg { width: 26px; height: 39px; }
  .menu-toggle { padding: 9px 10px; font-size: 18px; }
  .menu-toggle svg { display: none; }
  .home-title { font-size: 46px; }
  .home-welcome-copy .button-row { align-items: stretch; flex-direction: column; }
  .home-welcome-copy .button { width: 100%; }
  .selected-work img { height: 260px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-image { height: 275px; }
  .gallery-caption h2 { font-size: 19px; }
  .flyer-preview { height: 360px; }
  .simple-contact address { font-size: 23px; }
}

@media (max-width: 350px) {
  .header-inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 22px; }
  .brand > svg { width: 22px; height: 36px; }
  .home-title { font-size: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

@media print {
  body { display: block; min-height: 0; color: #000; background: #fff; font-size: 12pt; }
  main { display: block; }
  .site-header, .simple-footer, .skip-link, .button-row, .gallery-pagination, .lightbox { display: none !important; }
  .container { width: 100%; }
  .section, .compact-section, .page-hero { padding-block: 18px; }
  .page-hero { background: #fff; }
  .home-welcome { display: block; min-height: 0; background: #fff; }
  .home-welcome-inner { display: block; padding-block: 0; }
  .home-welcome-photo { width: 100%; height: 300px; object-fit: contain; }
  .home-welcome-copy { width: 100%; padding: 22px 0; }
  .content-grid, .contact-grid { display: block; }
  .demo-card, .gallery-item, .selected-work { break-inside: avoid; box-shadow: none; }
  .gallery-item[hidden] { display: block !important; }
  a { color: #000; }
}
