/* ==========================================================================
   Sanford Schmidt Media — clean static rebuild
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Open Sans', arial, sans-serif;

  --ink: #151515;
  --ink-soft: #1b1b1b;
  --body: #5e5e5e;
  --tagline: #575757;
  --footer: #595959;
  --panel: #f3f3f3;
  --white: #ffffff;
  --border: #151515;

  --container-max: 1160px;
  --side-pad: 24px;
  --content-col: 725px;
}

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair-display-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/open-sans-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/open-sans-italic-latin.woff2') format('woff2');
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; color: var(--ink); margin: 0; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

/* ---------- Utilities ---------- */
.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;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Header
   Desktop: logo centered in a bordered box, nav centered below.
   Mobile:  hamburger left, logo centered; drawer slides in.
   ========================================================================== */
.site-header {
  background: var(--white);
  padding-top: 56px;
}
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 24px;
}
.logo {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 8px 24px;
  text-decoration: none;
}
.logo h3 {
  font-size: 22px;
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
}
.site-nav ul {
  display: flex;
  justify-content: center;
  gap: 52px;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: 24px;
}
.site-nav a {
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a.active {
  border-bottom-color: #000000;
}

/* Mobile menu button (hidden on desktop) */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.menu-toggle svg { display: block; }

/* Mobile drawer */
.mobile-menu {
  display: none;
}

@media (max-width: 767px) {
  .site-header { padding-top: 0; }
  .header-inner {
    position: relative;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 35px var(--side-pad) 31px;
  }
  .logo { padding: 4px 16px; }
  .logo h3 { font-size: 18px; }
  .menu-toggle {
    display: block;
    position: absolute;
    left: var(--side-pad);
    top: 50%;
    transform: translateY(-50%);
    padding: 8px;
  }
  .menu-toggle svg { width: 32px; height: 32px; }
  .site-nav { display: none; }

  .mobile-menu {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--panel);
    padding: 24px;
    z-index: 100;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
  }
  .mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
  }
  .mobile-menu ul {
    list-style: none;
    margin: 56px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .mobile-menu a {
    font-family: var(--font-sans);
    font-size: 22px;
    color: var(--ink-soft);
    text-decoration: none;
  }
  .mobile-menu a.active { font-weight: 700; }
  .menu-close {
    position: absolute;
    top: 20px; right: 20px;
    background: none;
    border: 0;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--ink);
  }
}

/* ==========================================================================
   Home hero
   ========================================================================== */
.hero {
  display: flex;
  align-items: stretch;
  background: var(--white);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}
.hero-media {
  flex: 0 0 50%;
  max-width: 50%;
}
.hero-media img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--panel);
  padding: 48px 40px;
}
.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1.2;
  letter-spacing: 0.7px;
  color: var(--ink);
}
.hero-tagline {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tagline);
  margin-top: 8px;
}

/* Tablet (744-899px) */
@media (max-width: 899px) and (min-width: 744px) {
  .hero { flex-direction: column; margin-top: 40px; }
  .hero-media { flex: none; max-width: 667px; margin: 0 auto; }
  .hero-content { max-width: 667px; margin: 0 auto; }
}

@media (max-width: 767px) {
  .hero { flex-direction: column; margin-top: 40px; }
  .hero-media { flex: none; max-width: none; }
  .hero-content { padding: 32px 24px; margin: 0 auto; }
  .hero-content h1 { font-size: 28px; }
}

/* ==========================================================================
   Content sections
   ========================================================================== */
.content-section {
  padding: 25px 0;
}
.content-col {
  max-width: var(--content-col);
  margin: 0 auto;
}
.content-col h2 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 32px;
  text-align: center;
}
.content-col h4 {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.99px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  line-height: 1.25;
}
.content-col p {
  margin: 0 0 16px;
}
.content-col p:last-child { margin-bottom: 0; }

.content-col ul {
  margin: 16px 0;
  padding-left: 22px;
}
.content-col li {
  list-style: disc;
  margin-bottom: 8px;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .content-col { padding: 0 var(--side-pad); }
}

/* ==========================================================================
   About page
   ========================================================================== */
.page-heading {
  text-align: center;
  padding-top: 40px;
  margin-bottom: 40px;
}
.page-heading h1 {
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}
.page-heading .subtitle {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tagline);
  margin-bottom: 16px;
  display: block;
}

.about-row {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin: 40px 0;
}
.about-media {
  flex: 0 0 339px;
}
.about-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about-text {
  flex: 1;
}
.about-text p {
  margin: 0 0 16px;
}
.about-text ul {
  margin: 0 0 24px;
  padding-left: 22px;
}
.about-text li {
  margin-bottom: 6px;
}

@media (max-width: 767px) {
  .about-row { flex-direction: column; gap: 24px; margin: 24px 0; }
  .about-media { flex-basis: auto; }
  .page-heading h1 { font-size: 28px; }
}

/* ==========================================================================
   In the news
   ========================================================================== */
.news-list {
  max-width: var(--content-col);
  margin: 0 auto;
  padding: 0 var(--side-pad) 0 calc(var(--side-pad) + 22px);
  list-style: disc;
}
.news-list li {
  margin-bottom: 28px;
  line-height: 1.5;
  padding-left: 4px;
}
.news-list li strong {
  font-weight: 700;
  color: var(--ink);
}
.news-list li a {
  font-size: 16px;
  color: var(--ink);
  text-decoration: underline;
}
.news-list li a:hover {
  color: var(--body);
}

/* ==========================================================================
   Contact form
   ========================================================================== */
.contact-form {
  max-width: var(--content-col);
  margin: 0 auto;
  padding: 40px var(--side-pad) 40px;
}
.contact-form h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.3;
  color: var(--ink);
  text-align: center;
  margin-bottom: 32px;
}
.form-field {
  position: relative;
  margin-bottom: 20px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e2e2e2;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 23px 8px 8px;
  color: var(--ink);
  background: transparent;
  outline: none;
}
.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--ink);
}
.form-field textarea {
  border: 1px solid #e2e2e2;
  min-height: 146px;
  padding: 24px 8px 8px;
  resize: vertical;
}
.form-field label {
  position: absolute;
  left: 8px;
  top: 24px;
  font-size: 16px;
  color: var(--body);
  pointer-events: none;
  transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease;
}
.form-field input:focus ~ label,
.form-field input:not(:placeholder-shown) ~ label,
.form-field textarea:focus ~ label,
.form-field textarea:not(:placeholder-shown) ~ label {
  top: 6px;
  font-size: 12px;
}

.form-submit {
  margin-top: 8px;
}
.form-submit button {
  width: 100%;
  background: #000000;
  color: #c6c6c6;
  border: 0;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 3px;
  padding: 8px 32px;
  min-height: 56px;
  cursor: pointer;
  text-transform: uppercase;
}
.form-submit button:hover { color: #ffffff; }
.form-submit button:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 767px) {
  .contact-form { padding: 40px var(--side-pad) 40px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 56px 0 40px;
  text-align: center;
}
.site-footer p {
  margin: 0;
  font-size: 12px;
  color: var(--footer);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   404
   ========================================================================== */
.notfound {
  text-align: center;
  padding: 120px 24px;
}
.notfound h1 { font-size: 40px; margin-bottom: 16px; }
.notfound a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
