/* Blakletterpress — responsive stylesheet */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --ink: #25251f;
  --muted: #716f65;
  --paper: #f7f5ef;
  --surface: #fffefa;
  --accent: #9c4f3d;
  --accent-dark: #793b2e;
  --line: #e4dfd4;
  --sage: #e8ebe2;
  --shadow: 0 18px 50px rgba(46, 38, 27, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--accent-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #c68b70;
  outline-offset: 3px;
}

.site-header {
  position: relative;
  padding: 2.3rem 1.5rem 1.8rem;
  text-align: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-name {
  display: inline-block;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.2;
  text-decoration: none;
}

.tagline {
  margin: 0.5rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: inline-block;
  padding: 0.25rem 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.main-nav a:hover {
  color: var(--accent);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(1160px, calc(100% - 3rem));
  margin: 4rem auto;
}

main {
  min-width: 0;
}

article,
.layout main section {
  margin-bottom: 4.5rem;
  scroll-margin-top: 1.5rem;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.25rem, 4.5vw, 3.6rem);
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.3rem;
}

p {
  margin: 0 0 1rem;
}

article figure {
  margin: 0 0 1.6rem;
}

article figure img {
  width: 100%;
  max-height: 520px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--sage);
}

figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
}

article > p {
  max-width: 70ch;
  color: #4c4a43;
}

.value-list,
.team-list,
.footer-cols {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.value-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.value-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.value-card h3::before {
  display: block;
  width: 2rem;
  height: 3px;
  margin-bottom: 1rem;
  background: var(--accent);
  content: "";
}

.value-card p,
.member p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.team-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.member {
  min-width: 0;
}

.member img {
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-bottom: 1rem;
  object-fit: cover;
  background: var(--sage);
  filter: saturate(0.82);
}

.member h3 {
  margin-bottom: 0.3rem;
}

.contact-form {
  max-width: 620px;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.contact-form p {
  margin-bottom: 1.2rem;
}

.contact-form label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  padding: 0.8rem 0.9rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d8d2c6;
  border-radius: 3px;
  font: inherit;
  line-height: 1.5;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(156, 79, 61, 0.1);
  outline: none;
}

.contact-form button {
  padding: 0.8rem 1.35rem;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.contact-form button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.sidebar {
  position: sticky;
  top: 1.5rem;
  padding: 1.6rem;
  background: var(--sage);
  border-top: 3px solid var(--accent);
}

.sidebar h2 {
  font-size: 1.55rem;
}

.recent {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.recent li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(37, 37, 31, 0.12);
}

.recent li:first-child {
  padding-top: 0;
}

.recent a {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

.recent a:hover {
  color: var(--accent);
}

.sidebar > p {
  margin-bottom: 0;
  color: #55564e;
  font-size: 0.92rem;
}

.site-footer {
  padding: 3.5rem max(1.5rem, calc((100% - 1160px) / 2)) 1.5rem;
  color: #eae7df;
  background: #292b25;
}

.footer-cols {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.site-footer h3 {
  color: #fffdf6;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-footer p {
  margin-bottom: 0;
  color: #c5c4ba;
  font-size: 0.88rem;
}

.copyright {
  margin: 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #b9b8ae;
  text-align: center;
}

.copyright small {
  font-size: 0.78rem;
}

/* Tablet */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 2rem;
    width: min(100% - 2.5rem, 760px);
    margin: 3rem auto;
  }

  .value-list,
  .team-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-card:last-child {
    grid-column: 1 / -1;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 2.5rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding: 1.8rem 1rem 1.3rem;
  }

  .tagline {
    margin-bottom: 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .main-nav ul {
    gap: 0.25rem 1.1rem;
  }

  .main-nav a {
    font-size: 0.84rem;
  }

  .layout {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: calc(100% - 2rem);
    margin: 2.2rem auto;
  }

  article,
  .layout main section {
    margin-bottom: 3.2rem;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  h2 {
    font-size: 1.8rem;
  }

  article figure img {
    aspect-ratio: 4 / 3;
  }

  .value-list,
  .team-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .value-card:last-child {
    grid-column: auto;
  }

  .value-card {
    padding: 1.25rem;
  }

  .member {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    column-gap: 1rem;
    align-items: start;
  }

  .member img {
    grid-row: span 2;
    aspect-ratio: 4 / 5;
    margin-bottom: 0;
  }

  .member h3 {
    align-self: end;
    margin-top: 0.3rem;
  }

  .sidebar {
    position: static;
    width: 100%;
    margin: 0 0 2.5rem;
    padding: 1.3rem;
  }

  .sidebar h2 {
    margin-bottom: 1rem;
  }

  .contact-form {
    padding: 1.2rem;
  }

  .site-footer {
    padding: 2.5rem 1rem 1.2rem;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 2rem;
  }
}

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