/* Solomon Management Group — quiet, classic, residential. */
:root {
  --paper: #f4f4f1;
  --paper-deep: #ecece8;
  --ink: #26292a;
  --ink-soft: #5b5f5c;
  --ink-faint: #8b8f8a;
  --rule: #c9cbc5;
  --sage: #5d6b5b;
  --sage-deep: #4b5849;
  --serif: "Cormorant Garamond", "EB Garamond", Garamond, "Times New Roman", serif;
  --body: "EB Garamond", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* faint paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.wrap {
  width: min(100% - 3rem, 1080px);
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 1;
  padding-block: clamp(1.75rem, 4vw, 3.25rem) clamp(1rem, 2vw, 1.5rem);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-inline: clamp(0rem, 5vw, 4rem);
}

.brand { display: inline-flex; flex-direction: column; align-items: center; color: var(--ink); }
.brand .mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1;
  letter-spacing: 0.02em;
}
.brand .mark i {
  display: inline-block;
  width: 1px;
  height: 0.95em;
  background: var(--ink);
  opacity: 0.7;
}
.brand .word {
  margin-top: 0.55rem;
  font-family: var(--body);
  font-size: clamp(0.62rem, 1.15vw, 0.9rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.75rem);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}
.nav a {
  position: relative;
  padding-bottom: 0.35rem;
  color: var(--ink);
  transition: color 200ms ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms cubic-bezier(.2,.7,.2,1);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:hover { color: var(--sage-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3rem, 7vw, 5.5rem);
}
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: 0.005em;
}
.hero .lede {
  margin: 1.1rem auto 0;
  max-width: var(--measure);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 400;
  color: var(--ink-soft);
}
.hero .cta { margin-top: clamp(2rem, 4vw, 3rem); }

.button {
  display: inline-block;
  padding: 0.85rem 3.4rem;
  background: var(--sage);
  color: #f7f7f4;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}
.button:hover {
  background: var(--sage-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -12px rgba(38,41,42,.55);
}
.button:active { transform: translateY(0); box-shadow: none; }
.button:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }

/* ---------- Feature photo ---------- */
.feature {
  position: relative;
  z-index: 1;
  width: min(100% - 3rem, 1080px);
  margin-inline: auto;
}
.feature img {
  width: 100%;
  height: auto;
  aspect-ratio: 1076 / 513;
  object-fit: cover;
  border-radius: 2px;
}
@media (max-width: 640px) {
  .feature { width: 100%; }
  .feature img { aspect-ratio: 4 / 3; border-radius: 0; }
}

/* ---------- Content pages ---------- */
.page {
  position: relative;
  z-index: 1;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem);
}
.page h1 {
  margin: 0 0 0.35em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.1;
}
.page .lede {
  margin: 0 0 2.5rem;
  max-width: var(--measure);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--ink-soft);
}
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.1em; }
.prose h2 {
  margin: 2.2em 0 0.6em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.2;
}
.prose ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.35em; }

.rule {
  width: 3rem;
  height: 1px;
  background: var(--ink);
  opacity: .6;
  margin: 0 0 2rem;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
}

/* facts list (About) */
.facts {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.facts li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}
.facts .k {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 0.25rem;
  white-space: nowrap;
}
.facts .v { text-align: right; font-family: var(--serif); font-size: 1.2rem; }

/* contact details (Contact) */
.details { border-top: 1px solid var(--rule); }
.details > div {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.details .k {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.2rem;
}
.details .v {
  font-family: var(--serif);
  font-size: 1.35rem;
}
.details a.v { border-bottom: 1px solid transparent; transition: border-color 200ms ease; }
.details a.v:hover { border-bottom-color: var(--ink); }

/* form */
.form { display: grid; gap: 1.25rem; }
.form label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.4rem;
}
.form input, .form textarea, .form select {
  width: 100%;
  font: inherit;
  font-size: 1.1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 0.55rem 0;
  border-radius: 0;
  transition: border-color 200ms ease;
}
.form textarea { min-height: 7.5rem; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form .actions { margin-top: 0.5rem; }
.form .note { font-size: 0.95rem; color: var(--ink-faint); margin-top: 0.75rem; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  text-align: center;
  padding-block: clamp(2.5rem, 5vw, 3.5rem) clamp(2.5rem, 5vw, 4rem);
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.9;
}
.site-footer .sep { margin-inline: 0.5rem; color: var(--ink-faint); }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Page load reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(10px); animation: rise 700ms cubic-bezier(.2,.7,.2,1) forwards; }
  .reveal:nth-child(1) { animation-delay: 80ms; }
  .reveal:nth-child(2) { animation-delay: 200ms; }
  .reveal:nth-child(3) { animation-delay: 320ms; }
  .feature.reveal { animation-delay: 420ms; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .site-header .wrap { justify-content: center; text-align: center; padding-inline: 0; }
  .nav { width: 100%; justify-content: center; font-size: 1.2rem; }
  .facts li { flex-direction: column; gap: 0.2rem; }
  .facts .v { text-align: left; }
}
