/* Robin Thomas Design & Gallery — first-pass design system */
:root {
  --blue: #275284;          /* from the gallery logo */
  --blue-deep: #1d3f66;
  --ink: #2a2a2a;
  --ink-soft: #5a5a5a;
  --paper: #fbfaf7;         /* page ground, warm white */
  --paper-tint: #f2efe9;    /* tinted bands */
  --line: #e2ddd4;
  --gold: #b9a37a;          /* hairline accents only */
  --display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --body: "Lato", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-weight: 300; font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 780px; }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.eyebrow {
  font-family: var(--body); font-weight: 400; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 1em;
}
.lede { font-family: var(--display); font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.45; color: var(--ink); }
.note { font-size: .82rem; color: var(--ink-soft); font-style: italic; border-left: 2px solid var(--gold); padding-left: .8em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: .5em 1em; }
.skip:focus { left: 8px; z-index: 100; }

/* buttons */
.btn {
  display: inline-block; padding: .85em 1.9em; border: 1px solid var(--blue); background: var(--blue); color: #fff;
  font-family: var(--body); font-weight: 400; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--blue-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.4em; }
.text-link { font-family: var(--body); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 400; }

/* top bar + header */
.topbar { background: var(--blue); color: #fff; font-size: .78rem; letter-spacing: .04em; }
.topbar .wrap { max-width: none; display: flex; justify-content: space-between; align-items: center; min-height: 34px; padding: 0 20px; }
.topbar a { color: #fff; }
.topbar .sep { margin: 0 .7em; opacity: .6; }
.topbar-social { display: flex; gap: 10px; }
.topbar-social svg, .footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.site-header { text-align: center; padding: 26px var(--gutter) 0; border-bottom: 1px solid var(--line); background: #fff; }
.lockup { display: inline-block; position: relative; margin-bottom: 14px; }
.logo-design { height: 210px; width: auto; display: block; margin: -18px auto -10px; }
.logo-gallery { position: absolute; right: -9%; bottom: 0; height: 66px; width: auto; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: clamp(18px, 3vw, 42px); }
.site-nav a {
  display: block; padding: 14px 0 16px; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 400; color: var(--ink);
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a.active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-toggle, .nav-burger { display: none; }

/* hero */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-short { min-height: min(62vh, 560px); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,30,45,.72) 0%, rgba(20,30,45,.25) 55%, rgba(20,30,45,0) 100%); }
.hero-content { position: relative; z-index: 1; padding: 0 var(--gutter) clamp(40px, 6vw, 80px); max-width: 860px; margin: 0 auto; width: 100%; text-align: center; }
.hero .eyebrow { color: #fff; opacity: .85; }
.hero h1 { color: #fff; margin-bottom: .3em; font-size: clamp(2.2rem, 4.3vw, 3.4rem); }
.hero-sub { font-family: var(--display); font-size: 1.35rem; opacity: .95; }
.hero .btn { background: #fff; color: var(--blue); border-color: #fff; }
.hero .btn:hover { background: var(--paper-tint); }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.15); }
.hero .btn-row { justify-content: center; }

/* page head */
.page-head { padding: clamp(40px, 6vw, 72px) 0 0; text-align: center; }
.page-head .subhead { font-family: var(--display); font-size: 1.5rem; color: var(--ink-soft); font-style: italic; margin: 0 auto; }
.page-head .subhead.wide { max-width: 760px; font-style: normal; font-size: 1.3rem; line-height: 1.5; }
.page-head .note { display: inline-block; margin-top: 1.2em; }
.page-head .back { display: inline-block; margin-bottom: 1.6em; }
.intro { padding-top: clamp(40px, 5vw, 64px); text-align: center; }
.intro-gallery { padding-top: 0; }
.intro:has(+ .intro-gallery) { padding-bottom: clamp(20px, 3vw, 36px); }

/* tiles */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.section-head h2 { margin: 0; }
.tiles { display: grid; gap: clamp(20px, 3vw, 40px); }
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.tiles-2 { grid-template-columns: repeat(2, 1fr); }
.tile { color: var(--ink); }
.tile-img { overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-tint); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile h3 { margin: 16px 0 4px; }
.tile p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.tiles-flat .tile-img { aspect-ratio: 3 / 4; }

/* home photo strip */
.photo-strip { padding-top: 0; }
.photo-strip .section-head { align-items: end; margin-bottom: 26px; }
.photo-strip .section-head h2 { max-width: 560px; }
.photo-strip .section-head .eyebrow { margin-bottom: .5em; }
.photo-strip .text-link { padding-bottom: .4em; white-space: nowrap; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-cell { display: block; aspect-ratio: 1; overflow: hidden; background: var(--paper-tint); }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.photo-cell:hover img { transform: scale(1.04); }
.subtitle { font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.7rem); font-style: italic; color: var(--ink-soft); margin: -.3em 0 1em; }

/* endless aisle (projects page): JS masonry on a fine grid, aspect ratios preserved */
.aisle-section { padding-top: clamp(24px, 4vw, 48px); }
.aisle { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 8px; gap: 16px; }
.aisle-item { display: block; overflow: hidden; background: transparent; opacity: 0; transition: opacity .5s ease; }
.aisle-item.in { opacity: 1; }
.aisle-item img { width: 100%; height: auto; display: block; }
.aisle-label { display: block; height: 26px; line-height: 26px; font-size: .7rem; letter-spacing: .04em; color: var(--ink-soft); font-family: ui-monospace, Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aisle-sentinel { height: 1px; }

/* split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; padding: 0; }
.split-img { position: relative; min-height: 440px; aspect-ratio: 5 / 4; max-height: 660px; }
.split-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-text { align-self: center; }
.split-inset { margin: 1.6em 0 0; max-width: 240px; }
.split-inset img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.split-inset figcaption { font-size: .8rem; color: var(--ink-soft); font-style: italic; margin-top: .5em; }
.split-text { padding: clamp(40px, 6vw, 96px) clamp(24px, 6vw, 96px); max-width: 640px; }
.split-rev .split-img { order: 2; }
.split-rev .split-text { justify-self: end; }
.split-tint { background: var(--paper-tint); }
.split-fit .split-img { aspect-ratio: 4 / 3; min-height: 0; max-height: none; align-self: center; }
.credit { font-size: .78rem; color: var(--ink-soft); font-style: italic; margin-top: 18px; text-align: right; }
.split-tall .split-img { aspect-ratio: 4 / 5; max-height: 780px; }
.split-smaller .split-img { max-height: 620px; width: 88%; justify-self: center; align-self: center; }
/* split hero: text beside an uncropped portrait image */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--paper-tint); }
.hero-split .split-img { aspect-ratio: 3 / 4; max-height: 640px; min-height: 0; width: auto; height: 100%; max-width: 100%; justify-self: center; }
.hero-split .split-text { max-width: 600px; justify-self: end; }
.hero-split h1 { font-size: clamp(2rem, 3.4vw, 3.1rem); }
@media (min-width: 900px) { .hero-split h1 { white-space: nowrap; } }
@media (max-width: 720px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split .split-img { aspect-ratio: 4 / 5; max-height: 70vh; order: -1; }
  .split-tall .split-img { aspect-ratio: 4 / 5; }
}

/* quote / cta bands */
.quote-band { background: var(--blue); color: #fff; text-align: center; }
.quote-band blockquote { font-family: var(--display); font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-style: italic; font-weight: 400; line-height: 1.3; margin: 0 0 .6em; }
.quote-attr { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; opacity: .8; margin-bottom: 1.8em; }
.quote-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.quote-band .btn-ghost:hover { background: #fff; color: var(--blue); }
.cta-band { background: var(--paper-tint); text-align: center; }
.cta-band .btn-row { justify-content: center; }

/* visit */
.visit { border-top: 1px solid var(--line); }
.visit-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; align-items: start; }
.visit h2 { margin: 0; }
.visit p { margin-bottom: .8em; }

/* about */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-photo { margin: 0; position: sticky; top: 24px; }
.about-photo figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: .8em; font-style: italic; }
.prose p { font-size: 1.08rem; }
.prose p:first-child { font-family: var(--display); font-size: 1.55rem; line-height: 1.4; }

/* project pages */
.project-head { padding-bottom: 0; }
.project-cover { padding: clamp(24px, 4vw, 48px) 0 0; }
.project-cover img { width: auto; max-width: min(100%, 1100px); max-height: 80vh; margin: 0 auto; }
.masonry { columns: 3; column-gap: 18px; }
.masonry-item { display: block; break-inside: avoid; margin-bottom: 18px; background: var(--paper-tint); }
.masonry-item img { width: 100%; transition: opacity .2s; }
.masonry-item:hover img { opacity: .9; }
.masonry-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.masonry-cols .col { display: grid; gap: 18px; }
.masonry-cols .masonry-item { margin: 0; }
.masonry-cols img { width: 100%; display: block; object-fit: cover; }
.project-nav { border-top: 1px solid var(--line); padding: 36px 0; }
.project-nav-grid { display: flex; justify-content: space-between; gap: 20px; }
.project-nav-grid a { color: var(--ink); }
.project-nav-grid .eyebrow { display: block; margin-bottom: .2em; }
.project-nav-grid .right { text-align: right; }
.pn-title { font-family: var(--display); font-size: 1.6rem; }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(18,22,28,.94); display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px; }
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: 92vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; padding: 12px; opacity: .8; }
.lb button:hover { opacity: 1; }
.lb-close { top: 10px; right: 14px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 64px); font-size: .95rem; }
.footer-stack { text-align: center; }
.footer-stack p { margin: 0 0 .45em; }
.footer-name { font-family: var(--display); font-size: 1.6rem; margin-bottom: .5em !important; }
.footer-hours { color: var(--ink-soft); font-size: .9rem; }
.footer-tagline { font-family: var(--display); font-size: 1.3rem; font-style: italic; color: var(--blue); margin-top: .6em !important; }
.footer-social { display: flex; gap: 14px; justify-content: center; margin-top: 1.2em; }
.footer-social a { color: var(--ink); }
.footer-social a:hover { color: var(--blue); }
.footer-social svg { width: 22px; height: 22px; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 18px; padding-bottom: 18px; font-size: .78rem; color: var(--ink-soft); }
.footer-legal p { margin: 0; }

/* responsive */
@media (max-width: 960px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .tiles-3 { grid-template-columns: repeat(2, 1fr); }
  .aisle { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 280px 1fr; }
  .visit-grid { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 2; }
}
/* Services splits, tablet to small laptop: the photo took its height from the text, and its 5:4 ratio then
   pushed its width past half the page (crushed text, sideways scroll). Hold both columns at half instead. */
@media (min-width: 721px) and (max-width: 1279px) {
  .split:not(.split-fit):not(.split-tall):not(.hero-split) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split:not(.split-fit):not(.split-tall):not(.hero-split) .split-img { aspect-ratio: auto; width: 100%; min-height: 360px; }
  .split-rev:not(.split-fit):not(.split-tall):not(.hero-split) .split-text { justify-self: stretch; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar-contact .sep, .topbar-contact a:last-child { display: none; }
  .logo-design { height: 130px; margin: -10px auto -6px; }
  .logo-gallery { height: 42px; }
  .lockup { margin-bottom: 8px; }
  .site-header { padding-top: 18px; position: relative; }
  .site-nav ul { display: none; flex-direction: column; gap: 0; padding-bottom: 12px; }
  .nav-toggle:checked ~ ul { display: flex; }
  .nav-burger { display: flex; flex-direction: column; gap: 5px; position: absolute; right: var(--gutter); top: 30px; cursor: pointer; padding: 8px; }
  .nav-burger span { display: block; width: 24px; height: 2px; background: var(--ink); }
  .site-nav a { padding: 10px 0; }
  .split { grid-template-columns: 1fr; }
  .split-rev .split-img { order: 0; }
  .split-img { min-height: 0; aspect-ratio: 4 / 3; max-height: 60vh; }
  .split-text { max-width: none; }
  .tiles-2, .tiles-3 { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .aisle { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tiles-flat { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 320px; }
  .visit-grid { grid-template-columns: 1fr; gap: 20px; }
  .masonry { columns: 2; column-gap: 10px; }
  .masonry-cols { grid-template-columns: 1fr 1fr; gap: 10px; }
  .masonry-cols .col { display: contents; }
  .masonry-cols img { aspect-ratio: 1 / 1 !important; }
  .masonry-item { margin-bottom: 10px; }
  .hero { min-height: 70vh; }
  .hero-content { text-align: left; }
  .hero .btn-row { justify-content: flex-start; }
}

/* Designer Notebook (blog archive) */
.post-list { display: grid; gap: clamp(28px, 4vw, 56px); }
.post-card { display: grid; grid-template-columns: 300px 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; color: var(--ink); text-decoration: none; }
.post-card-img { aspect-ratio: 4 / 3; background: var(--paper-tint); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card h2 { margin: .2em 0 .4em; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.post-card p { color: var(--ink-soft); margin: 0 0 .8em; }
.post-card:hover h2 { color: var(--blue); }
.post-head .back { display: inline-block; margin-bottom: 1.6em; }
.post-body p { font-size: 1.08rem; }
.post-body h2, .post-body h4 { margin-top: 1.6em; }
.post-body img { max-width: 100%; height: auto; display: block; margin: 1.2em auto; }
.post-body a[data-lightbox] { display: block; margin: 1.2em 0; }
.post-body a[data-lightbox] img { margin: 0 auto; }
.post-body figure { margin: 1.4em 0; }
.post-body figcaption { font-size: .85rem; color: var(--ink-soft); font-style: italic; margin-top: .5em; }
.post-body [data-gallery] { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 1.6em 0; align-items: start; }
.post-body [data-gallery] figure { margin: 0; }
.post-body [data-gallery] a[data-lightbox] { margin: 0; }
.post-body [data-gallery] img { margin: 0; width: 100%; }
@media (max-width: 720px) {
  .post-card { grid-template-columns: 1fr; }
  .post-body [data-gallery] { grid-template-columns: 1fr; }
}

/* contact (2026-09-18) */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-info h2, .contact-form h2 { font-size: 1.6rem; margin: 0 0 .4em; }
.contact-info h2:not(:first-child) { margin-top: 1.2em; }
.contact-social { display: flex; gap: 14px; }
.contact-social svg { width: 22px; height: 22px; fill: var(--blue); }
.contact-form { background: var(--paper-tint); padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: .85rem; letter-spacing: .04em; color: var(--ink-soft); }
.contact-form .optional { text-transform: none; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.contact-form .btn { justify-self: start; cursor: pointer; border: 0; }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form .form-note { font-size: .8rem; font-style: italic; color: var(--ink-soft); margin: 0; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
