/* Five Six Homes — private website draft
   Palette: warm ivory, navy, muted sage
   Fonts: Fraunces (display), Source Sans 3 (UI/body) — SIL OFL, self-hosted
*/

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-italic.woff2") format("woff2");
}

:root {
  --ivory: #f4efe6;
  --ivory-soft: #fbf8f2;
  --ivory-deep: #e8e0d2;
  --sand: #d4c4a8;
  --navy: #1b2a41;
  --navy-deep: #121c2e;
  --navy-mid: #2a3d5a;
  --sage: #7a8b73;
  --sage-deep: #4a5646;
  --sage-soft: #c5d0be;
  --sage-mist: #dfe6d8;
  --clay: #a57c5b;
  --ink: #1f2633;
  --muted: #4f584c;
  --line: rgba(27, 42, 65, 0.14);
  --line-strong: rgba(27, 42, 65, 0.22);
  --focus: #3d6b8c;
  --error-note: #6b3a2a;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --space-xs: 0.35rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;

  --wrap: 1120px;
  --wrap-narrow: 720px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 16px 40px rgba(18, 28, 46, 0.08);
  --header-h: 4.5rem;

  --step: 0.16s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-mid);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--navy);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--navy);
  color: var(--ivory-soft);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
  outline-offset: 2px;
}

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

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2rem, var(--wrap-narrow));
}

/* Draft ribbon */
.draft-banner {
  background: var(--navy);
  color: var(--ivory);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.45rem 1rem;
  font-weight: 500;
}

.draft-banner strong {
  font-weight: 700;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: color-mix(in srgb, var(--ivory-soft) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--step), box-shadow var(--step);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(18, 28, 46, 0.05);
}

.site-header__inner {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--navy);
  line-height: 1;
  padding: 0.35rem 0;
}

.wordmark:hover,
.wordmark:focus-visible {
  color: var(--navy);
}

.wordmark__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.wordmark__unit {
  margin-top: 0.22rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--ivory-soft);
  color: var(--navy);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle__icon {
  width: 1.15rem;
  height: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle__icon span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--step), opacity var(--step);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) {
  transform: translateY(6.2px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) {
  transform: translateY(-6.2px) rotate(-45deg);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav a {
  display: inline-block;
  text-decoration: none;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}

.site-nav a:hover {
  background: var(--ivory-deep);
}

.site-nav a[aria-current="page"] {
  background: var(--navy);
  color: var(--ivory);
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(1200px 420px at 85% 0%, rgba(197, 208, 190, 0.45), transparent 60%),
    linear-gradient(180deg, var(--ivory-soft) 0%, var(--ivory) 100%);
}

.hero__grid {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.35rem, 5.4vw, 4.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.lede {
  margin: 0 0 1.75rem;
  font-size: clamp(1.12rem, 1.6vw, 1.28rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--step), color var(--step), border-color var(--step), transform var(--step);
}

.button--primary {
  background: var(--navy);
  color: var(--ivory-soft);
}

.button--primary:hover {
  background: var(--navy-deep);
  color: var(--ivory-soft);
}

.button--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}

.button--ghost:hover {
  background: var(--ivory-soft);
  color: var(--navy);
}

.button[disabled],
.button--disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  background: var(--navy-mid);
  color: var(--ivory);
}

.illustration {
  background: linear-gradient(180deg, #e7eee6 0%, #efe6d6 48%, #ddd4c2 100%);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.illustration figcaption {
  margin: 0;
  padding: 0.7rem 1rem 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--ivory-soft);
  border-top: 1px solid var(--line);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6.25rem) 0;
}

.section--alt {
  background: var(--ivory-soft);
}

.section--navy {
  background: var(--navy);
  color: var(--ivory);
}

.section--navy .eyebrow {
  color: var(--sage-soft);
}

.section--navy h2,
.section--navy p {
  color: var(--ivory);
}

.section__intro {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.section__intro p,
.prose p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Audience paths */
.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.path-card {
  background: var(--ivory-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.15rem);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.path-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.path-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  flex: 1;
}

.path-card__note {
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  background: var(--sage-mist);
  border-radius: var(--radius-sm);
  color: var(--sage-deep);
  margin-bottom: 1.15rem !important;
}

.path-link {
  align-self: flex-start;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 1px solid var(--sage);
  padding-bottom: 0.1rem;
}

.path-link:hover {
  border-bottom-color: var(--navy);
}

/* Empty states */
.empty-state {
  border: 1px dashed color-mix(in srgb, var(--sage-deep) 45%, var(--ivory-deep));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--sage-mist) 55%, var(--ivory-soft)), var(--ivory-soft));
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.empty-state h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--navy);
}

.empty-state p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  max-width: 42rem;
}

.empty-state p:last-child {
  margin-bottom: 0;
}

/* Approach */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
}

.steps .num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--sage);
  margin-bottom: 0.55rem;
  letter-spacing: -0.02em;
}

.steps h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--navy);
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.aside-card {
  background: var(--navy);
  color: var(--ivory);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
}

.aside-card h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.aside-card p {
  margin: 0;
  color: color-mix(in srgb, var(--ivory) 82%, var(--sage-soft));
  font-size: 1.05rem;
}

/* Contact / draft form */
.notice {
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.05rem;
  margin: 0 0 1.35rem;
  border: 1px solid color-mix(in srgb, var(--error-note) 28%, var(--ivory-deep));
  background: #f4e7df;
  color: var(--error-note);
  font-size: 1rem;
}

.notice strong {
  color: var(--navy-deep);
}

.form-card {
  background: var(--ivory-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.15rem;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

fieldset:disabled {
  /* Keep the draft form readable; the notice already states it is inactive. */
  opacity: 1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  width: 100%;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  cursor: not-allowed;
  background: var(--ivory-deep);
  color: var(--muted);
  opacity: 1;
}

.form-actions {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}

.form-hint {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: color-mix(in srgb, var(--ivory) 82%, var(--sage-soft));
  padding: 2.75rem 0 2.1rem;
}

.site-footer__inner {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.site-footer .wordmark {
  color: var(--ivory);
}

.site-footer .wordmark__unit {
  color: var(--sage-soft);
}

.site-footer p {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--ivory);
}

/* Responsive */
@media (max-width: 860px) {
  .hero__grid,
  .paths,
  .steps,
  .about-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ivory-soft);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    padding: 0.5rem 1rem 1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-sm);
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 1.0625rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .draft-banner,
  .nav-toggle,
  .hero-actions,
  .form-card,
  .site-nav {
    display: none !important;
  }

  .site-header {
    position: static;
    background: white;
  }

  body {
    background: white;
    color: black;
  }

  a[href^="#"] {
    text-decoration: none;
    color: inherit;
  }
}


/* Past projects */
.projects-note {
  max-width: 44rem;
  margin: 0 0 2rem;
  color: var(--muted);
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-card {
  background: var(--ivory-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.project-media {
  background: var(--ivory-deep);
  padding: 0.85rem 0.85rem 0.7rem;
}

.project-stage {
  margin: 0;
}

.project-stage img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--ivory-deep);
}

.project-stage figcaption {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
  padding: 0;
  list-style: none;
}

.thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: none;
  cursor: pointer;
  line-height: 0;
}

.thumbs button[aria-pressed="true"],
.thumbs button:focus-visible {
  border-color: var(--navy);
}

.thumbs img {
  width: 4.75rem;
  height: 3.15rem;
  object-fit: cover;
  border-radius: 4px;
}

.project-body {
  padding: clamp(1.25rem, 3vw, 1.85rem);
  display: flex;
  flex-direction: column;
}

.project-body h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.project-place {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--sage-deep);
}

.project-facts,
.project-sales {
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 1rem;
}

.project-facts li,
.project-sales li {
  margin: 0 0 0.25rem;
}

.project-line {
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: var(--navy);
}

.project-caveat,
.project-credit {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.project-credit {
  margin-top: auto;
  padding-top: 0.6rem;
}

.project-credit a {
  color: var(--navy-mid);
}

@media (max-width: 860px) {
  .project-card {
    grid-template-columns: 1fr;
  }
}
