/* ============================================================
   HIDDEN ARCHITECTURE — design tokens
   Coastal New England practice: quiet, site-specific, unhurried.
   Palette reads like weathered shingle + slate cove water, never
   the stock "warm cream + terracotta" studio look.
   ============================================================ */

/* 1. Updated Google Fonts Import (Now bringing in Arvo for headings) */
@import url('https://fonts.googleapis.com/css2?family=Arvo:wght@700&family=Montserrat:wght@400;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --paper:      #FFFFFF; /* This makes the main background pure white */
  --paper-deep: #F5F5F5; /* A very light gray for subtle depth */
  --paper-line: #EAEAEA; /* A soft, clean gray for borders and lines */
  --card:       #FAFAFA; /* A slightly off-white color for photo backgrounds */

  /* 2. Ink Colors mapped to the screenshot */
  --ink:        #111111; /* Solid black for Arvo headings */
  --ink-soft:   #777777; /* Medium gray for paragraph text */
  --ink-faint:  #999999; 

  --accent:     #3F5F66;
  --accent-deep:#2A4247;
  --accent-tint:#DCE4E2;

  /* 3. Assigned Arvo to the display font */
  --font-display: 'Arvo', Rockwell, serif;
  --font-body: 'Montserrat', Arial, sans-serif;
  --font-mono: 'Montserrat', Arial, sans-serif;

  --max: 1320px;
  --gutter: clamp(24px, 5vw, 72px);
}

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

::selection{ background: var(--accent); color: var(--paper); }

/* ---------- utility ---------- */

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.hairline{
  border: none;
  border-top: 1px solid var(--paper-line);
  margin: 0;
}

.sr-only{
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92); /* Now pure white with 92% opacity */
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--paper-line);
}

.site-nav .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.wordmark{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.wordmark span{
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-top: 4px;
}

.nav-links{
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a{
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
  transition: color .25s ease;
}
.nav-links a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right .3s ease;
}
.nav-links a:hover, .nav-links a.is-active{ color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after{ right: 0; }

.nav-toggle{ display: none; }

/* ---------- footer ---------- */

.site-footer{
  border-top: 1px solid var(--paper-line);
  padding: 56px 0 40px;
  margin-top: 120px;
}
.site-footer .wrap{
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-col h3 {
  font-family: var(--font-display); /* Swapping out the mono font for your Arvo heading font */
  font-size: 20px; /* Making it a bit larger */
  letter-spacing: normal; /* Removing the wide spacing */
  text-transform: none; /* Changing it from all-caps */
  color: var(--ink); /* Making it a solid dark color */
  margin: 0 0 12px;
  font-weight: 700; /* Making it bold */
}
.footer-col p, .footer-col a{
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 6px;
  display: block;
}
.footer-col a:hover{ color: var(--accent-deep); }
.footer-bottom {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 24px var(--gutter) 0;
  border-top: 1px solid var(--paper-line);
  font-family: var(--font-body); /* Swaps out the mono font for your clean body font */
  font-size: 13px; /* Bumped up slightly so it is easy to read in the new font */
  color: var(--ink-faint);
  letter-spacing: normal; /* Removes the extra wide spacing */
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- placeholder photography panels ----------
   Standing in for real project photography: a quiet
   site-plan motif (contour lines + a coordinate tag)
   rendered in the ink/paper family, not a grey box.
   Swap in a real photo by adding a background-image
   inline style with the same class, or replacing the
   inner <div class="ph-fill"> with an <img>.
---------------------------------------------------- */

.photo{
  position: relative;
  background: linear-gradient(160deg, var(--paper-deep), var(--card));
  overflow: hidden;
}
.photo svg{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.photo .ph-tag{
  position: absolute;
  left: 20px; bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
  background: rgba(232,227,213,0.82);
  padding: 5px 10px;
}
.photo.tone-deep{ background: linear-gradient(160deg, #cfc7ac, var(--paper-deep)); }

/* ---------- buttons / links ---------- */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: opacity .2s ease;
}
.btn:hover{ opacity: 0.6; }

/* ---------- hero ---------- */

.hero{
  position: relative;
  height: 92vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
}
.hero .photo{ position: absolute; inset: 0; }
.hero-scrim{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,36,31,0.05) 0%, rgba(30,36,31,0.72) 100%);
}
.hero-inner{
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 64px;
}
.hero-eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.85;
  margin-bottom: 18px;
}
.hero h1{
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 1.02;
  margin: 0 0 28px;
  max-width: 16ch;
  letter-spacing: -0.01em;
}
.hero-scroll{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.hero-scroll .line{
  width: 40px; height: 1px;
  background: var(--paper);
}

/* ---------- intro strip ---------- */

.intro{
  padding: 120px 0 100px;
}
.intro .grid-2{
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 6vw, 100px);
}
.intro h2{
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}
.intro .body-col p{
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 20px;
}
.intro .body-col p:last-child{ margin-bottom: 0; }

/* ---------- work grid ---------- */

.work-head{
  padding: 0 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.work-head h2{
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(30px, 3.6vw, 46px);
  margin: 10px 0 0;
}

.work-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  padding-bottom: 4px;
}
.work-card{
  grid-column: span 6;
  display: block;
  position: relative;
}
.work-card.span-4{ grid-column: span 4; }
.work-card.span-8{ grid-column: span 8; }
.work-card .photo{
  aspect-ratio: 4/3;
}
.work-card.tall .photo{ aspect-ratio: 3/4; }
.work-card-meta {
  display: flex;
  flex-direction: column; /* This forces the location to stack under the title */
  align-items: flex-start; /* Aligns everything to the left edge */
  padding: 16px 2px 40px;
  gap: 4px; /* Controls the space between the title and the location */
}

.work-card-meta h3 {
  font-family: var(--font-display);
  font-weight: 700; /* Makes the heading thicker to match your image */
  font-size: 22px; 
  margin: 0;
  transition: opacity .2s ease;
}

.work-card:hover h3 { 
  opacity: 0.6; 
}

.work-card-meta .loc {
  font-family: var(--font-body); /* Switches to your clean Montserrat font */
  font-weight: 600; /* Makes the location text bold */
  font-size: 14px; /* Bumps up the size slightly */
  letter-spacing: normal; /* Removes the wide letter spacing */
  text-transform: none; /* Turns off the all-caps */
  color: var(--ink-soft); /* Uses the medium gray color */
  white-space: normal;
}


@media (max-width: 900px){
  .work-card, .work-card.span-4, .work-card.span-8{ grid-column: span 12; }
  .intro .grid-2{ grid-template-columns: 1fr; }
}

/* ---------- project detail ---------- */

.proj-hero{
  height: 78vh;
  min-height: 460px;
  position: relative;
  color: var(--paper);
  display: flex;
  align-items: flex-end;
}
.proj-hero .photo{ position: absolute; inset: 0; }
.proj-hero-inner{
  position: relative; z-index: 2;
  padding-bottom: 56px;
  width: 100%;
}
.proj-hero .loc-tag{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 16px;
}
.proj-hero h1{
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(34px, 5.2vw, 68px);
  margin: 0;
  max-width: 20ch;
  line-height: 1.05;
}

.proj-body{
  padding: 88px 0 40px;
  display: grid;
  grid-template-columns: 0.85fr 1.6fr;
  gap: clamp(32px, 6vw, 90px);
}
.proj-meta dl{
  margin: 0;
  display: grid;
  gap: 18px;
}
.proj-meta dt{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.proj-meta dd{
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}
.proj-text p{
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 62ch;
}
.proj-text p:last-child{ margin-bottom: 0; }
.proj-back{
  display: inline-block;
  margin-top: 40px;
}

.proj-gallery{
  padding: 60px 0 20px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
}
.proj-gallery .photo{ grid-column: span 6; aspect-ratio: 4/3; }
.proj-gallery .photo.wide{ grid-column: span 12; aspect-ratio: 16/8; }
.proj-gallery .photo.narrow{ grid-column: span 4; aspect-ratio: 3/4; }

@media (max-width: 900px){
  .proj-body{ grid-template-columns: 1fr; }
  .proj-gallery .photo, .proj-gallery .photo.narrow{ grid-column: span 12; }
}

/* ---------- thumb grid (commercial / unbuilt) ---------- */

.thumb-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 20px 0 60px;
}
.thumb-grid .photo{ aspect-ratio: 4/3; }
.thumb-cap{
  padding: 12px 2px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
@media (max-width: 700px){
  .thumb-grid{ grid-template-columns: repeat(2,1fr); }
}

/* ---------- about page ---------- */

.about-hero{
  padding: 160px 0 80px;
}
.about-hero .eyebrow{ margin-bottom: 24px; }
.about-hero h1{
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.12;
  max-width: 18ch;
  margin: 0;
}

.about-grid{
  display: grid;
  grid-template-columns: 0.95fr 1.3fr;
  gap: clamp(32px, 6vw, 90px);
  padding: 20px 0 100px;
  align-items: start;
}
.about-grid .photo{ aspect-ratio: 4/5; }
.about-copy p{
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 22px;
}
.about-name {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600; 
  color: var(--ink-soft);
  margin: 36px 0 0 0;
  text-align: left; /* Changed to left */
}

.about-role {
  font-family: var(--font-body); 
  font-size: 18px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none; 
  color: var(--ink-soft);
  margin: 0 0 24px 6px; /* Added a tiny bit of left margin (6px) so it doesn't squish against the name */
  text-align: left; /* Changed to left */
}

.about-name, .about-role {
  display: inline-block; 
}

.license-list {
  list-style: none;
  margin: 0 0 30px; 
  padding: 0;
  font-family: var(--font-body); 
  font-size: 15px;
  color: var(--ink-soft);
  display: grid;
  gap: 6px;
  text-align: left; /* Changed to left */
}
.service-belt{
  padding: 70px 0;
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}
.service-belt .wrap{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.service-belt .col h3{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 16px;
}
.service-belt ul{
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px;
}
.service-belt li{
  font-size: 16px;
  color: var(--ink);
  padding-left: 18px;
  position: relative;
}
.service-belt li::before{
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 1px;
  background: var(--accent);
}
@media (max-width: 900px){
  .about-grid, .service-belt .wrap{ grid-template-columns: 1fr; }
}

.press-list{
  padding: 80px 0 100px;
}
.press-list h2{
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 36px;
}
.press-item{
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--paper-line);
}
.press-item:last-child{ border-bottom: 1px solid var(--paper-line); }
.press-item .tag{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.press-item .title{ font-size: 16px; }
@media (max-width: 640px){
  .press-item{ grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- contact page ---------- */

.contact-wrap{
  padding: 160px 0 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 100px);
}
.contact-wrap h1{
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.1;
  margin: 0 0 24px;
  max-width: 14ch;
}
.contact-wrap .lede{
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 40px;
}
.contact-block{ margin-bottom: 32px; }
.contact-block h3{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 8px;
}
.contact-block p, .contact-block a{
  font-size: 17px;
  margin: 0;
  display: block;
}
.contact-block a:hover{ color: var(--accent-deep); }

.form-field{ margin-bottom: 24px; }
.form-field label{
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.form-field input, .form-field textarea{
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--paper-line);
  padding: 10px 2px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  transition: border-color .2s ease;
}
.form-field input:focus, .form-field textarea:focus{
  outline: none;
  border-bottom-color: var(--accent);
}
.form-field textarea{ resize: vertical; min-height: 110px; }
.submit-btn{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 16px 30px;
  cursor: pointer;
  transition: background .2s ease;
}
.submit-btn:hover{ background: var(--accent-deep); }
.form-note{
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 14px;
  display: none;
}
.form-note.visible{ display: block; }

@media (max-width: 900px){
  .contact-wrap{ grid-template-columns: 1fr; }
}

/* ---------- mobile nav ---------- */

@media (max-width: 720px){
  .nav-links{
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 40px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-links a{ font-size: 20px; }
  .nav-toggle{
    display: block;
    background: none; border: none;
    width: 28px; height: 20px;
    position: relative;
    cursor: pointer;
  }
  .nav-toggle span{
    position: absolute; left: 0; right: 0; height: 1px;
    background: var(--ink);
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav-toggle span:nth-child(1){ top: 0; }
  .nav-toggle span:nth-child(2){ top: 9px; }
  .nav-toggle span:nth-child(3){ top: 18px; }
  .nav-toggle.open span:nth-child(1){ transform: translateY(9px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity: 0; }
  .nav-toggle.open span:nth-child(3){ transform: translateY(-9px) rotate(-45deg); }
}
