/* Roger Hines Architecture. Calm, square-edged, paper and ink. */
@font-face { font-family: 'Libre Caslon Text'; src: url('../fonts/LibreCaslonText-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Libre Caslon Text'; src: url('../fonts/LibreCaslonText-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --rha-paper: #FCFAF7;
  --rha-paper-2: #F5F2EE;
  --rha-stone: #EBE8E6;
  --rha-rule: #D9D4CE;
  --rha-muted: #67625C;
  --rha-text: #3A3A3A;
  --rha-ink: #2C2C2C;
  --rha-bronze: #9A7B4F;
  --rha-bronze-text: #7A6040;
  --rha-font-serif: 'Libre Caslon Text', Georgia, serif;
  --rha-font-sans: 'Poppins', Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 38rem;
  --wide: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--rha-paper);
  color: var(--rha-text);
  font-family: var(--rha-font-sans);
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.75;
  text-align: left;
  hyphens: manual;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
b, strong { font-weight: 400; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1.1em; max-width: var(--measure); }
a { color: var(--rha-ink); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--rha-ink); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--rha-ink); color: var(--rha-paper); padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* Type */
h1, h2, h3 { font-family: var(--rha-font-serif); font-weight: 400; color: var(--rha-ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -0.005em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }
h1 em, h2 em, h3 em { font-style: italic; }
.label {
  font-family: var(--rha-font-sans); font-weight: 400; font-size: .8125rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--rha-muted);
  margin: 0 0 1rem; line-height: 1.5;
}
.lede { font-size: 1.25rem; max-width: 34rem; }

/* Layout */
.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.band { background: var(--rha-paper-2); }
hr.rule { border: 0; border-top: 1px solid var(--rha-rule); margin: 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--rha-rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.brand { display: block; line-height: 0; width: clamp(10.5rem, 22vw, 15rem); flex: 0 0 auto; }
.brand img { width: 100%; height: auto; }
.nav ul { list-style: none; display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); margin: 0; padding: 0; align-items: center; }
.nav a { font-weight: 400; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--rha-ink); padding: .5rem 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--rha-ink); }
.menu-btn { display: none; background: none; border: 0; color: var(--rha-ink); width: 3rem; height: 3rem; padding: 0; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: .75rem; right: .75rem; height: 1px; background: var(--rha-ink); }
.menu-btn span:nth-child(1) { top: 1.1rem; }
.menu-btn span:nth-child(2) { top: 1.7rem; }
.menu-btn .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 860px) {
  .js .menu-btn { display: inline-block; }
  .site-header .wrap { flex-wrap: wrap; }
  .nav { width: 100%; }
  .js .nav[hidden] { display: none; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: .5rem 0 .75rem; }
  .nav li { width: 100%; border-top: 1px solid var(--rha-rule); }
  .nav a { display: block; padding: .9rem 0; }
}

/* Hero */
.hero-img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: center 60%; background: var(--rha-stone); }
@media (max-width: 700px) { .hero-img { aspect-ratio: 4 / 3; } }
.hero-text { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero-text h1 { max-width: 16em; margin-bottom: .45em; }
.caption { font-size: .9375rem; color: var(--rha-muted); margin: .75rem 0 0; }
.caption.wrap { max-width: var(--wide); }

/* Reasons */
.reasons { display: grid; gap: 2.5rem; grid-template-columns: repeat(3, 1fr); }
.reasons h3 { margin-bottom: .4em; }
.reasons p { margin: 0; }
@media (max-width: 800px) { .reasons { grid-template-columns: 1fr; gap: 2rem; } }

/* Known for */
.known { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rha-rule); }
.known li { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--rha-rule); }
.known h3 { font-size: 1.2rem; margin-bottom: .3em; }
.known p { margin: 0; font-size: 1rem; }
@media (max-width: 900px) { .known { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .known { grid-template-columns: 1fr; } }

/* Quotes */
.quote { margin: 0; max-width: 40rem; }
.quote p { font-family: var(--rha-font-serif); font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.55; color: var(--rha-ink); max-width: none; }
.quote .who { font-family: var(--rha-font-sans); font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rha-muted); font-weight: 400; margin: 1.25rem 0 0; }
.quote .who span { display: block; text-transform: none; letter-spacing: .02em; font-weight: 300; font-size: .9375rem; margin-top: .2rem; }
.quotes { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 6vw, 6rem); margin-top: 2.5rem; align-items: start; }
.quotes .quote p { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.quotes .quote.main p { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
@media (max-width: 800px) { .quotes { grid-template-columns: 1fr; } }
.quote-stack { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.quote-stack .quote + .quote { border-top: 1px solid var(--rha-rule); padding-top: clamp(2rem, 4vw, 3.5rem); }

/* Closing */
.closing h2 { max-width: 20em; }
.closing p.sig { font-family: var(--rha-font-serif); font-style: italic; color: var(--rha-ink); margin-top: 3rem; }
.cta { display: inline-block; font-weight: 400; font-size: .875rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--rha-ink); border: 1px solid var(--rha-ink); padding: 1rem 1.75rem; margin-top: .5rem; }
.cta:hover { background: var(--rha-ink); color: var(--rha-paper); }
/* The one bronze accent on a page */
.cta.accent { color: var(--rha-bronze-text); border-color: var(--rha-bronze); }
.cta.accent:hover { background: var(--rha-bronze-text); border-color: var(--rha-bronze-text); color: var(--rha-paper); }
.bronze-line { width: 3.5rem; height: 1px; background: var(--rha-bronze); border: 0; margin: 0 0 1.75rem; }

/* Page heads */
.page-head { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.page-head h1 { max-width: 15em; }
.page-head .lede { margin-top: 1rem; }

/* Homes */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem clamp(1.5rem, 3vw, 3rem); }
.project figure { margin: 0; }
.project img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--rha-stone); }
.project h3 { margin: 1.1rem 0 .15rem; }
.project .label { margin: .9rem 0 0; }
.project p { margin: .25rem 0 0; font-size: 1rem; }
.project.feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
@media (max-width: 800px) { .projects { grid-template-columns: 1fr; } .project.feature { grid-template-columns: 1fr; } }
.empty-slot { border: 1px solid var(--rha-rule); background: var(--rha-paper-2); display: flex; align-items: center; padding: clamp(1.5rem, 4vw, 3rem); min-height: 14rem; }
.empty-slot p { margin: 0; }

/* Stages */
.stages { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--rha-rule); }
.stages li { display: grid; grid-template-columns: 3rem minmax(9rem, 14rem) 1fr; gap: 1rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rha-rule); align-items: baseline; }
.stages .n { font-family: var(--rha-font-serif); font-size: 1.6rem; color: var(--rha-muted); line-height: 1.2; }
.stages h3 { margin: 0; font-size: 1.25rem; }
.stages p { margin: 0; max-width: none; }
.stages .you { display: block; margin-top: .5rem; font-size: 1rem; color: var(--rha-muted); }
@media (max-width: 700px) { .stages li { grid-template-columns: 2.25rem 1fr; } .stages li > :last-child { grid-column: 2; } }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem clamp(2rem, 6vw, 6rem); }
.cols-2 h3 { margin-bottom: .4em; }
.cols-2 p { max-width: none; }
@media (max-width: 800px) { .cols-2 { grid-template-columns: 1fr; } }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; padding-bottom: clamp(3rem, 7vw, 6rem); }
.about-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 7rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.details { list-style: none; padding: 0; margin: 0; }
.details li { padding: 1rem 0; border-top: 1px solid var(--rha-rule); }
.details li:last-child { border-bottom: 1px solid var(--rha-rule); }
.details .label { margin-bottom: .2rem; }
.details a, .details span { font-size: 1.15rem; }
form .field { margin-bottom: 1.5rem; max-width: 36rem; }
label { display: block; font-weight: 400; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rha-muted); margin-bottom: .45rem; }
label .opt { text-transform: none; letter-spacing: .02em; font-weight: 300; font-size: .9375rem; }
input, textarea { width: 100%; font: 300 1.125rem/1.5 var(--rha-font-sans); color: var(--rha-ink); background: var(--rha-paper); border: 1px solid var(--rha-ink); border-radius: 0; padding: .85rem 1rem; }
textarea { min-height: 10rem; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--rha-ink); outline-offset: 2px; }
button.cta { background: transparent; font-family: var(--rha-font-sans); cursor: pointer; border-radius: 0; }
.note { font-size: 1rem; color: var(--rha-muted); max-width: 36rem; }

/* Text pages */
.prose { padding-bottom: clamp(3.5rem, 8vw, 7rem); }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.prose ul { max-width: var(--measure); padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.terms h2 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: .3em; }

/* Footer */
.site-footer { background: var(--rha-stone); margin-top: auto; padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; font-size: 1rem; }
.site-footer .sig { font-family: var(--rha-font-serif); font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: var(--rha-ink); margin: 0 0 2.5rem; max-width: none; }
.site-footer .sig em { font-style: italic; }
.foot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
.foot-grid p { margin: 0; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: .35rem; }
.foot-grid .label { color: var(--rha-muted); }
.legal { font-size: .9375rem; color: var(--rha-muted); max-width: 52rem; border-top: 1px solid var(--rha-rule); padding-top: 1.5rem; margin: 0; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }

/* Image-led home */
.hero-img.tall { aspect-ratio: 16 / 8.5; object-position: center 55%; }
@media (max-width: 700px) { .hero-img.tall { aspect-ratio: 4 / 5; object-position: 62% 50%; } }
.hero-center { text-align: center; padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 6vw, 5rem); }
.hero-center h1 { max-width: 14em; margin: 0 auto .4em; font-size: clamp(2.3rem, 6vw, 4.4rem); }
.hero-center .lede { margin: 0 auto; text-align: center; }
.hero-center .label { margin-bottom: 1.5rem; }
.statement { font-family: var(--rha-font-serif); font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.4; color: var(--rha-ink); max-width: 36rem; margin: 0 0 2rem; }
.textlink { font-weight: 400; font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rha-ink); text-decoration: none; border-bottom: 1px solid var(--rha-ink); padding-bottom: .35rem; display: inline-block; }
.textlink:hover { border-bottom-width: 2px; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 3rem); margin-top: 2.5rem; }
.card { margin: 0; }
.card.wide { grid-column: 1 / -1; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--rha-stone); }
.card.wide img { aspect-ratio: 16 / 8; }
.card .label { margin: 1.25rem 0 .5rem; }
.card h3 { margin: 0 0 .35rem; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.card p { margin: 0 0 1rem; font-size: 1rem; }
.tag { display: inline-block; border: 1px solid var(--rha-rule); color: var(--rha-muted); font-weight: 400; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; padding: .3rem .7rem; line-height: 1.4; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } .card.wide img { aspect-ratio: 3 / 2; } }

.sketchbook { background: var(--rha-stone); }
.sketches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin: 2.5rem 0 2rem; }
.sketches.six { grid-template-columns: repeat(4, 1fr); }
.sketch { margin: 0; background: var(--rha-paper); padding: .75rem .75rem 1rem; }
.sketch img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.sketch figcaption { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rha-muted); font-weight: 400; margin-top: .75rem; line-height: 1.5; }
@media (max-width: 900px) { .sketches, .sketches.six { grid-template-columns: repeat(2, 1fr); } }

.promises { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 6vw, 6rem); border-top: 1px solid var(--rha-rule); }
.promises li { display: grid; grid-template-columns: 3rem 1fr; padding: 1.25rem 0; border-bottom: 1px solid var(--rha-rule); align-items: baseline; }
.promises .n { font-family: var(--rha-font-serif); color: var(--rha-muted); }
.promises p { margin: 0; max-width: none; }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; } }

.journey { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.5rem; }
.journey li { border-top: 1px solid var(--rha-ink); padding-top: 1rem; }
.journey .n { font-family: var(--rha-font-serif); color: var(--rha-muted); font-size: 1.1rem; display: block; }
.journey h3 { font-size: 1.15rem; margin: .2rem 0 0; }
@media (max-width: 800px) { .journey { grid-template-columns: repeat(2, 1fr); } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header, .site-footer .foot-grid, .skip, .cta { display: none; }
  body { font-size: 11pt; background: #fff; }
}

/* Hero video: the still image is always underneath, as the poster and for reduced motion */
.hero-media { position: relative; background: var(--rha-stone); }
.hero-media .hero-img { display: block; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
@media (max-width: 700px) { .hero-video { object-position: 62% 50%; } }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

.sketch-videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin: 0 0 2rem; }
.sketch-videos video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--rha-paper); }
@media (max-width: 700px) { .sketch-videos { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .sketch-videos video { display: none; } }

.sketch-videos { max-width: 46rem; }
.sketch-videos video { aspect-ratio: 3 / 4; }

/* Difficult sites links */
.site-links{list-style:none;margin:1.25rem 0 0;padding:0;display:flex;flex-wrap:wrap;gap:.75rem 2rem}
.site-links li{margin:0}
.cols-2 h3 a{color:inherit;text-decoration:none}
.cols-2 h3 a:hover{color:var(--bronze-text,#7A6040)}
