/* The Restoration Mill — static rebuild.
   Design tokens captured from the original site (Oct 2026). */

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --black: #000000;
  --band: #f5f5f5;
  --muted: #737373;
  --border: #e6e6e6;
  --accent: #f6f2eb;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --content-narrow: 672px;
  --content-contact: 576px;
  --content-wide: 1080px;
  --content-detail: 800px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ---- entrance motion: fade-in on load ---- */
.fade { opacity: 0; transform: translateY(10px); }
body.loaded .fade { opacity: 1; transform: none; transition: opacity .5s ease-out, transform .5s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; }
  body.loaded .fade { transition: none; }
}

/* ---- header ---- */
.site-header { text-align: center; border-bottom: 1px solid var(--border); }
.site-logo { display: inline-block; line-height: 0; padding: 24px 24px 4px; }
.site-logo img { height: 128px; width: auto; }
@media (min-width: 768px) { .site-logo img { height: 192px; } }

.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; padding: 12px; margin: 4px auto 8px;
  cursor: pointer; color: var(--text); width: 48px;
}
.nav-toggle svg { width: 24px; height: 24px; }
@media (min-width: 768px) { .nav-toggle { display: none; } }

.main-nav { display: none; }
.main-nav.open { display: block; }
@media (max-width: 767px) {
  .main-nav.open { animation: navSlideIn .15s ease-out; }
  @keyframes navSlideIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}
@media (min-width: 768px) {
  .main-nav { display: flex; justify-content: center; gap: 48px; padding: 8px 24px 20px; }
}
.nav-link {
  display: block;
  padding: 12px 24px;
  font-family: var(--sans);
  font-size: 14px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .025em;
  color: var(--muted); text-decoration: none;
  transition: color .15s ease;
}
@media (min-width: 768px) { .nav-link { padding: 4px 0; } }
.nav-link:hover { color: var(--black); }
.nav-link.active { color: var(--black); }

/* ---- type ---- */
h1, h2, h3 {
  font-family: var(--serif); font-weight: 500;
  letter-spacing: -0.01em; color: var(--black);
  margin: 0 0 16px; line-height: 1.2;
}
h1 { font-size: 30px; }
@media (min-width: 768px) { h1 { font-size: 36px; } }
h2 { font-size: 24px; }
@media (min-width: 768px) { h2 { font-size: 30px; } }

.divider { width: 64px; height: 1px; background: var(--black); border: 0; margin: 24px auto; }

.tagline {
  font-family: var(--serif); font-style: italic;
  font-size: 20px; letter-spacing: .02em; color: var(--black);
}

/* ---- hero (home) ---- */
.hero { max-width: var(--content-narrow); margin: 0 auto; text-align: center; padding: 64px 24px; }
@media (min-width: 768px) { .hero { padding: 96px 24px; } }
.hero .lead { font-size: 18px; line-height: 1.7; margin: 0 0 24px; }
.hero .tagline { margin: 0; }

/* ---- interior page head ---- */
.page-head { max-width: var(--content-narrow); margin: 0 auto; text-align: center; padding: 64px 24px 8px; }
@media (min-width: 768px) { .page-head { padding: 72px 24px 8px; } }
.page-head .lede { font-size: 18px; color: var(--muted); margin: 0; }

/* ---- services band ---- */
.services { background: var(--band); text-align: center; padding: 64px 24px; }
@media (min-width: 768px) { .services { padding: 80px 24px; } }
.service-grid { display: grid; gap: 40px; max-width: var(--content-wide); margin: 48px auto 0; }
@media (min-width: 768px) { .service-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.service h3 { font-size: 20px; margin-bottom: 12px; }
.service p { color: var(--muted); margin: 0; font-size: 16px; }

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  text-align: center; padding: 28px 24px;
  font-size: 14px; color: var(--muted);
  margin-top: auto;
}

/* ---- contact ---- */
.contact-wrap { max-width: var(--content-contact); margin: 0 auto; text-align: center; padding: 64px 24px 80px; }
.contact-wrap > p { margin: 0 0 16px; font-size: 16px; }
.contact-rows { margin: 32px 0; display: grid; gap: 18px; }
.contact-row {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 17px; text-decoration: none; transition: color .15s ease;
}
a.contact-row:hover { color: var(--muted); }
.contact-row svg { width: 20px; height: 20px; flex: none; }
.social-row { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 6px; }
.social-row a { color: inherit; transition: color .15s ease; display: inline-flex; }
.social-row a:hover { color: var(--muted); }
.social-row svg { width: 24px; height: 24px; display: block; }

/* ---- projects hub ---- */
.projects-grid {
  display: grid; gap: 32px;
  max-width: var(--content-wide); margin: 0 auto;
  padding: 40px 24px 24px;
}
@media (min-width: 768px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  display: block; background: #fff;
  border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
  text-decoration: none; transition: border-color .15s ease;
}
.project-card:hover { border-color: var(--muted); }
.project-card .thumb {
  aspect-ratio: 4 / 3; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.project-card .thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.project-card .thumb span {
  font-family: var(--serif); font-size: 44px; letter-spacing: .05em; color: var(--muted);
}
.project-card .card-body { padding: 24px; }
.project-card .card-tag {
  display: block; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 10px;
}
.project-card h3 { font-size: 22px; margin-bottom: 8px; }
.project-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.more-note {
  text-align: center; color: var(--muted);
  font-family: var(--serif); font-style: italic; font-size: 19px;
  padding: 32px 24px 88px; margin: 0;
}

.sold-section { max-width: var(--content-wide); margin: 0 auto; padding: 8px 24px 0; }
.sold-section h2 { text-align: center; }
.sold-section .projects-grid { padding: 40px 0 24px; }

/* ---- project detail ---- */
.detail-wrap { max-width: var(--content-detail); margin: 0 auto; padding: 56px 24px 88px; }
.back-link {
  display: inline-block; margin-bottom: 36px;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); text-decoration: none; transition: color .15s ease;
}
.back-link:hover { color: var(--black); }
.detail-tag {
  text-align: center; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 14px;
}
.detail-wrap h1 { text-align: center; }
.detail-lede {
  text-align: center; font-size: 18px; color: var(--muted);
  max-width: 620px; margin: 0 auto 44px; line-height: 1.7;
}
.fact-list { border: 1px solid var(--border); border-radius: 4px; margin: 0 0 16px; }
.fact {
  display: grid; grid-template-columns: 132px 1fr; gap: 16px;
  padding: 13px 20px; border-bottom: 1px solid var(--border); font-size: 15px;
}
.fact:last-child { border-bottom: 0; }
.fact .k { font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 2px; }
.detail-wrap h2 { margin: 48px 0 16px; }
.detail-wrap p { font-size: 16px; line-height: 1.75; margin: 0 0 16px; }
.detail-wrap ul { margin: 0 0 16px; padding-left: 22px; }
.detail-wrap li { font-size: 16px; line-height: 1.75; margin-bottom: 8px; }
.photo-note {
  background: var(--accent); border-radius: 4px;
  padding: 36px 28px; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--muted);
  margin: 44px 0;
}
.photo-grid { display: grid; gap: 16px; margin: 40px 0; }
@media (min-width: 768px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
.photo-grid img {
  width: 100%; height: auto; display: block;
  border-radius: 4px; border: 1px solid var(--border);
}
.detail-cta { text-align: center; margin-top: 56px; }
.detail-cta .tagline { margin: 0 0 12px; }
.detail-cta p { color: var(--muted); }
.detail-cta a { font-weight: 600; }
