:root {
  color-scheme: light;
  --paper: #f5edda;
  --ink: #396b4b;
  --body-ink: #4e4b40;
  --link-underline: #8a9d84;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body-ink);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.page-shell { width: min(100% - 3rem, 850px); margin: 0 auto; padding: clamp(3.5rem, 8vw, 7rem) 0 7rem; }
.masthead { text-align: center; margin-bottom: clamp(3.8rem, 8vw, 6rem); }
h1 {
  margin: 0;
  color: var(--ink);
  font-family: 'Arial Narrow', 'Liberation Sans Narrow', 'Roboto Condensed', 'Helvetica Neue', Arial, sans-serif;
  font-stretch: condensed;
  font-weight: 700;
  font-size: clamp(2.15rem, 7.2vw, 4.55rem);
  line-height: 1.12;
  letter-spacing: .105em;
  text-transform: uppercase;
  text-wrap: balance;
}
.ornament { display: flex; justify-content: center; align-items: center; margin: 2.25rem auto 0; max-width: 360px; }
.ornament::before, .ornament::after { content: ''; display: block; height: 1px; background: var(--ink); flex: 1; }
.ornament span { width: 13px; height: 13px; border: 1.6px solid var(--ink); border-radius: 50%; display: block; flex: none; }
.section-navigation { display: flex; flex-wrap: wrap; gap: .8rem 2.2rem; justify-content: center; margin-top: 1.8rem; font-family: Arial, sans-serif; font-size: .82rem; letter-spacing: .09em; }
.section-navigation a { color: var(--ink); text-decoration: none; }
.section-navigation a:hover, .section-navigation a:focus-visible { text-decoration: underline; text-underline-offset: .35em; }
.section { scroll-margin-top: 2rem; }
h2 { margin: 0 0 1.7rem; color: var(--ink); font-size: clamp(1.65rem, 3.4vw, 2rem); font-weight: normal; line-height: 1.25; }
h3 { color: var(--ink); margin: 0 0 .28rem; font-size: 1.17rem; font-weight: normal; line-height: 1.4; }
p { margin: 0; font-size: 1rem; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 300px); gap: clamp(1.6rem, 4.5vw, 3rem); align-items: start; }
.portrait { margin: 0; }
.portrait img { display: block; width: 100%; height: auto; border-radius: 2px; }
.about-copy { display: grid; gap: 1.15rem; }
.interests-section { margin-top: clamp(4rem, 8vw, 6rem); }
.interests { display: grid; gap: 1.85rem; }
.contact-section { margin-top: 5rem; }
.contact-section h2 { margin-bottom: 1.3rem; }
a { color: var(--ink); text-decoration-color: var(--link-underline); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (max-width: 620px) {
  .page-shell { width: min(100% - 2.5rem, 850px); padding-top: 4.5rem; padding-bottom: 5rem; }
  h1 { font-size: clamp(2.05rem, 9.1vw, 3.2rem); letter-spacing: .065em; }
  .ornament { margin-top: 1.9rem; max-width: 245px; }
  .masthead { margin-bottom: 4.25rem; }
  .about-layout { grid-template-columns: 1fr; gap: 1.7rem; }
  .portrait { width: min(100%, 340px); margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Shared masthead on all pages; name always returns to the homepage. */
.site-title { color: inherit; text-decoration: none; }
.site-title:hover { text-decoration: none; }
.site-title:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.topic-link { color: inherit; text-decoration: none; }
.topic-link:hover, .topic-link:focus-visible { text-decoration: underline; text-decoration-color: var(--ink); text-underline-offset: .22em; }
.topic-page { max-width: 710px; }
.topic-page h2 { margin-bottom: 1.25rem; }

/* Version 6: clickable section title and dedicated Interests landing page. */
.section-heading-link { color: inherit; text-decoration: none; }
.section-heading-link:hover, .section-heading-link:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
.interests-photo { float: right; width: min(39%, 290px); margin: .1rem 0 1.5rem 2.3rem; }
.interests-photo img { display: block; width: 100%; height: auto; border-radius: 2px; }
.interests-page .interests { display: block; }
.interests-page .interest { margin-bottom: 1.85rem; }
.interests-page::after { content: ''; display: table; clear: both; }
@media (max-width: 620px) {
  .interests-photo { float: none; width: min(100%, 340px); margin: 0 auto 2rem; }
}

/* Version 7: portrait faces inward from the right on wider screens. */
.about-layout .about-copy { order: 1; }
.about-layout .portrait { order: 2; }
@media (max-width: 620px) {
  .about-layout .portrait { order: 1; }
  .about-layout .about-copy { order: 2; }
}

/* Version 8: dedicated Ideas page photograph. */
.ideas-page::after { content: ''; display: table; clear: both; }
.ideas-photo { float: right; width: min(43%, 300px); margin: 0 0 1.4rem 2rem; }
.ideas-photo img { display: block; width: 100%; height: auto; border-radius: 2px; }
@media (max-width: 620px) {
  .ideas-photo { float: none; width: min(100%, 340px); margin: 0 auto 2rem; }
}


/* Version 10: a third, playful photograph on the Ideas page. */
.ideas-playful-photo { clear: both; float: right; width: min(43%, 300px); margin: 2rem 0 1.5rem 2rem; }
.ideas-playful-photo img { display: block; width: 100%; height: auto; border-radius: 2px; }
@media (max-width: 620px) {
  .ideas-playful-photo { float: none; width: min(100%, 340px); margin: 2.5rem auto 0; }
}

/* Version 11: playful autumn photograph moved to Forth Programming. */
.forth-photo { width: min(100%, 300px); margin: 2rem 0 1.5rem auto; }
.forth-photo img { display: block; width: 100%; height: auto; border-radius: 2px; }
@media (max-width: 620px) {
  .forth-photo { width: min(100%, 340px); margin: 2rem auto 0; }
}

/* Version 12: Gardening portrait below the introduction. */
.gardening-photo { width: min(100%, 300px); margin: 2rem 0 1.5rem auto; }
.gardening-photo img { display: block; width: 100%; height: auto; border-radius: 2px; }
@media (max-width: 680px) {
  .gardening-photo { width: min(100%, 340px); margin: 2rem auto 0; }
}

/* Version 15: same editorial image-and-text flow as Ideas on all topic pages.
   The image precedes prose in the document so paragraphs can flow alongside it. */
.topic-page::after { content: ''; display: table; clear: both; }
.topic-page .forth-photo,
.topic-page .gardening-photo {
  float: right;
  width: min(43%, 300px);
  margin: 0 0 1.4rem 2rem;
}
@media (max-width: 620px) {
  .topic-page .forth-photo,
  .topic-page .gardening-photo {
    float: none;
    width: min(100%, 340px);
    margin: 0 auto 2rem;
  }
}

/* Version 16: website recreation of the engraved Crane calling card. */
.card-contact-page { max-width: 850px; }
.calling-card {
  --card-green: #396b4b;
  width: 100%;
  aspect-ratio: 1.76 / 1;
  padding: 5.8% 5.5% 6.5%;
  background: #f3e8c9;
  color: var(--card-green);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
  box-shadow: 0 0 0 1px rgb(76 66 39 / 10%);
}
.calling-card-name,
.calling-card-email {
  font-family: 'Arial Narrow', 'Liberation Sans Narrow', 'Roboto Condensed', 'Helvetica Neue', Arial, sans-serif;
  font-stretch: condensed;
  font-weight: 800;
  color: var(--card-green);
}
.calling-card-name {
  font-size: clamp(1rem, 5vw, 3.12rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .105em;
  white-space: nowrap;
  transform: scaleX(.86);
}
.calling-card-ornament { display: flex; align-items: center; width: 55%; margin: 5% auto 3.4%; }
.calling-card-ornament::before,
.calling-card-ornament::after { content: ''; flex: 1; height: 1px; background: var(--card-green); }
.calling-card-ornament span { width: 12px; height: 12px; border: 1.5px solid var(--card-green); border-radius: 50%; }
.calling-card-interests {
  font-family: 'Bickham Script Pro', 'Snell Roundhand', 'URW Chancery L', 'Apple Chancery', 'Brush Script MT', cursive;
  font-size: clamp(.95rem, 3.6vw, 2.35rem);
  line-height: 1.3;
  font-style: italic;
  white-space: nowrap;
}
.calling-card-interests span { font-family: Georgia, serif; font-size: .55em; font-style: normal; vertical-align: middle; padding: 0 .12em; }
.calling-card-email {
  font-size: clamp(.9rem, 3.45vw, 2.5rem);
  letter-spacing: .115em;
  text-decoration: none;
  margin-top: auto;
  white-space: nowrap;
}
.calling-card-email:hover,
.calling-card-email:focus-visible { text-decoration: underline; }
@media (max-width: 620px) {
  .calling-card { padding: 6% 3.5% 7%; }
  .calling-card-name { font-size: clamp(.76rem, 4.6vw, 2.6rem); letter-spacing: .065em; }
  .calling-card-interests { font-size: clamp(.63rem, 2.8vw, 1.65rem); }
  .calling-card-ornament span { width: 9px; height: 9px; }
  .calling-card-email { font-size: clamp(.8rem, 3.35vw, 1.8rem); }
}

/* Version 18: compact, single-line site masthead for all pages. */
.page-shell { padding-top: clamp(1.75rem, 4vw, 3rem); }
.masthead { margin-bottom: clamp(2rem, 4vw, 3rem); }
.masthead h1 {
  font-size: clamp(.95rem, 4vw, 2.45rem);
  line-height: 1.2;
  letter-spacing: .065em;
  white-space: nowrap;
  text-wrap: nowrap;
}
.masthead .ornament { margin-top: .85rem; max-width: 300px; }
.masthead .section-navigation { margin-top: .85rem; gap: .6rem 1.8rem; }
@media (max-width: 620px) {
  .page-shell { padding-top: 1.7rem; }
  .masthead { margin-bottom: 2.3rem; }
  .masthead h1 { font-size: clamp(.88rem, 4vw, 1.7rem); letter-spacing: .025em; }
  .masthead .ornament { margin-top: .75rem; max-width: 210px; }
  .masthead .section-navigation { margin-top: .75rem; }
}

/* Version 21: home photo floats across About, Interests and Contact. */
.home-flow::after { content: ""; display: block; clear: both; }
.home-flow .home-portrait {
  float: right;
  width: min(42%, 330px);
  margin: 0 0 1.4rem 2rem;
}
.home-flow .about-copy { display: block; }
.home-flow .about-copy p + p { margin-top: 1.15rem; }
.home-flow .interests-section { margin-top: 2.8rem; }
.home-flow .contact-section { margin-top: 2.8rem; }
@media (max-width: 620px) {
  .home-flow .home-portrait {
    float: none;
    width: min(100%, 340px);
    margin: 0 auto 2rem;
  }
}

/* Contact page: portrait at right, contact text alongside it. */
.contact-section:has(.contact-photo) { margin-top: 0; }
.contact-section:has(.contact-photo)::after { content: ""; display: table; clear: both; }
.contact-photo { float: right; width: min(43%, 300px); margin: 0 0 1.4rem 2rem; }
.contact-photo img { display: block; width: 100%; height: auto; border-radius: 2px; }
@media (max-width: 620px) {
  .contact-photo { float: none; width: min(100%, 340px); margin: 0 auto 2rem; }
}

/* Version 25: unified editorial photo placement inside each content section. */
.about-section:has(.about-layout)::after,
.about-section:has(.home-portrait)::after { content: ""; display: table; clear: both; }
.about-section .about-layout { display: block; }
.about-section .about-layout .portrait {
  float: right;
  width: min(42%, 330px);
  margin: 0 0 1.4rem 2rem;
}
.about-section .about-layout .about-copy { display: block; }
.about-section .about-layout .about-copy p + p { margin-top: 1.15rem; }
@media (max-width: 620px) {
  .about-section .about-layout .portrait {
    float: none;
    width: min(100%, 340px);
    margin: 0 auto 2rem;
  }
}


/* Version 26: one consistent editorial width and photo position.
   All section pages use the full page-shell width, and every portrait
   floats against the same right-hand edge. */
.topic-page { max-width: none; }
.section .home-portrait,
.section .about-layout .portrait,
.section .interests-photo,
.section .contact-photo,
.section.topic-page .forth-photo,
.section.topic-page .gardening-photo,
.section.topic-page .technology-photo,
.section.topic-page .typewriters-photo {
  float: right;
  width: min(42%, 330px);
  margin: 0 0 1.4rem 2rem;
}
@media (max-width: 620px) {
  .section .home-portrait,
  .section .about-layout .portrait,
  .section .interests-photo,
  .section .contact-photo,
  .section.topic-page .forth-photo,
  .section.topic-page .gardening-photo,
.section.topic-page .technology-photo,
.section.topic-page .typewriters-photo {
    float: none;
    width: min(100%, 340px);
    margin: 0 auto 2rem;
  }
}
/* Match the same section clearance for all pages. */
.section:has(figure)::after { content: ""; display: table; clear: both; }


/* Photography portfolio: images appear beneath the introductory copy,
   preserving their original aspect ratios for future additions. */
.photography-gallery { display: grid; gap: 2rem; margin-top: 2.5rem; }
.photography-gallery .gallery-photo { margin: 0; width: 100%; }
.photography-gallery .gallery-photo img { display: block; max-width: 100%; width: 100%; height: auto; border-radius: 2px; }

/* Version 32: standard editorial portrait above photography gallery. */
.section.topic-page .photography-portrait {
  float: right;
  width: min(42%, 330px);
  margin: 0 0 1.4rem 2rem;
}
.photography-portrait img { display: block; width: 100%; height: auto; border-radius: 2px; }
.photography-gallery { clear: both; }
@media (max-width: 620px) {
  .section.topic-page .photography-portrait {
    float: none;
    width: min(100%, 340px);
    margin: 0 auto 2rem;
  }
}


/* Version 33 — one portrait treatment for every page.
   This deliberately takes precedence over older page-specific rules. */
.section :is(.home-portrait, .about-layout .portrait, .interests-photo,
  .contact-photo, .forth-photo, .gardening-photo, .technology-photo,
  .typewriters-photo, .photography-portrait) {
  float: right;
  width: min(42%, 330px);
  max-width: 100%;
  margin: 0 0 1.4rem 2rem;
}
.section :is(.home-portrait, .about-layout .portrait, .interests-photo,
  .contact-photo, .forth-photo, .gardening-photo, .technology-photo,
  .typewriters-photo, .photography-portrait) img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}
@media (max-width: 620px) {
  .section :is(.home-portrait, .about-layout .portrait, .interests-photo,
    .contact-photo, .forth-photo, .gardening-photo, .technology-photo,
    .typewriters-photo, .photography-portrait) {
    float: none;
    width: min(100%, 330px);
    margin: 0 auto 2rem;
  }
}
