/* ===========================================================
   Alice — design & technology studio
   Shared stylesheet
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --ink: #15140f;
  --paper: #eae6dc;
  --paper-dim: #ddd8ca;
  --teal: #1f3b36;
  --teal-dim: #294f48;
  --brass: #9c7a3c;
  --grey: #8b887c;
  --grey-on-ink: #a9a79b;
  --max-w: 1180px;
  --gutter: clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a.text-link {
  border-bottom: 1px solid var(--brass);
  padding-bottom: 1px;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
a.text-link:hover { opacity: 0.65; }

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

h1, h2, h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  margin: 0;
}

p { margin: 0; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- nav ---------- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
}

.wordmark {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 28px;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  font-size: 15px;
}

.nav-links a {
  position: relative;
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--brass);
}

.menu-toggle {
  display: none;
}

/* ---------- sections generic ---------- */
section { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 9vw, 120px); }

.section-ink {
  background: var(--ink);
  color: var(--paper);
}

.section-teal {
  background: var(--teal);
  color: var(--paper);
}

.eyebrow {
  font-size: 14px;
  color: var(--brass);
  margin-bottom: 14px;
  display: inline-block;
}

/* ---------- hero ---------- */
.hero {
  padding-top: clamp(40px, 8vw, 88px);
  padding-bottom: clamp(56px, 10vw, 120px);
}

.hero h1 {
  font-size: clamp(52px, 9vw, 118px);
  font-style: italic;
  line-height: 0.98;
  max-width: 11ch;
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s forwards;
}

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  max-width: 46ch;
  margin-top: 28px;
  font-size: 19px;
  color: #3a3930;
}

.hero-actions {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 { animation: none; opacity: 1; transform: none; }
}

/* ---------- clients strip ---------- */
.clients {
  border-top: 1px solid #cfc9b8;
  border-bottom: 1px solid #cfc9b8;
  padding-top: 28px;
  padding-bottom: 28px;
}

.clients-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
  align-items: baseline;
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  color: var(--grey);
}

/* ---------- practice index (services) ---------- */
.practice-list {
  margin-top: 40px;
}

.practice-item {
  display: grid;
  grid-template-columns: 64px 1.1fr 1fr;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 40px;
  border-top: 1px solid #3a3930;
}
.section-ink .practice-item { border-top-color: #3a392f; }

.practice-item:last-child { border-bottom: 1px solid #3a3930; }

.practice-index {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--brass);
}

.practice-item h3 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-style: italic;
}

.practice-item p {
  color: var(--grey-on-ink);
  max-width: 44ch;
}

.practice-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 14px;
  color: var(--grey-on-ink);
}

@media (max-width: 820px) {
  .practice-item { grid-template-columns: 40px 1fr; }
  .practice-item p, .practice-item .practice-tags { grid-column: 2; }
}

/* ---------- work index ---------- */
.work-entry {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: end;
  padding-top: 44px;
  padding-bottom: 44px;
  border-top: 1px solid #cfc9b8;
}
.work-entry:last-child { border-bottom: 1px solid #cfc9b8; }

.work-entry h3 {
  font-size: clamp(30px, 4vw, 46px);
  font-style: italic;
}

.work-entry .client {
  font-size: 14px;
  color: var(--brass);
  margin-bottom: 10px;
  display: block;
}

.work-entry p { color: #4a4838; max-width: 52ch; }

.work-entry .go { margin-top: 16px; display: inline-block; font-size: 15px; }

@media (max-width: 780px) {
  .work-entry { grid-template-columns: 1fr; }
}

/* ---------- press ---------- */
.press-list { margin-top: 28px; }
.press-item {
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid #3a3930;
  font-size: 16px;
}
.press-item:last-child { border-bottom: 1px solid #3a3930; }
.press-item .by { color: var(--grey-on-ink); font-size: 14px; margin-left: 10px; }

/* ---------- leadership (about) ---------- */
.lead-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 48px;
}

.lead-card h3 { font-size: 26px; font-style: italic; }
.lead-card .role { color: var(--brass); font-size: 15px; margin-top: 4px; display: block; }
.lead-card p { margin-top: 14px; color: #4a4838; max-width: 40ch; }
.lead-card a.text-link { margin-top: 14px; display: inline-block; font-size: 14px; }

@media (max-width: 700px) {
  .lead-grid { grid-template-columns: 1fr; }
}

.values-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.values-row h3 { font-size: 22px; font-style: italic; color: var(--brass); }
.values-row p { margin-top: 10px; color: var(--grey-on-ink); }
@media (max-width: 700px) { .values-row { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.offices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 44px;
}
.office h3 { font-size: 24px; font-style: italic; }
.office address { font-style: normal; margin-top: 12px; color: var(--grey-on-ink); line-height: 1.8; }
.office a.text-link { color: var(--paper); }
@media (max-width: 700px) { .offices { grid-template-columns: 1fr; } }

form.contact-form {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
form.contact-form .full { grid-column: 1 / -1; }
@media (max-width: 700px) { form.contact-form { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--grey);
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #b6b09b;
  padding: 10px 2px;
  font: inherit;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 90px; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--grey);
}
.consent input { margin-top: 4px; }

button.submit {
  justify-self: start;
  margin-top: 8px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 14px 30px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease;
}
button.submit:hover { background: var(--teal); }

/* ---------- newsletter ---------- */
.newsletter {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
.newsletter input[type="email"] {
  background: transparent;
  border: none;
  border-bottom: 1px solid #6a6858;
  padding: 10px 2px;
  font: inherit;
  color: var(--paper);
  min-width: 260px;
}
.newsletter button {
  background: none;
  border: 1px solid var(--paper);
  color: var(--paper);
  padding: 10px 22px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.newsletter button:hover { background: var(--paper); color: var(--ink); }

/* ---------- footer ---------- */
footer {
  background: var(--ink);
  color: var(--grey-on-ink);
  padding-top: 56px;
  padding-bottom: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid #3a3930;
}

.footer-nav { display: flex; gap: 28px; font-size: 15px; }
.footer-social { display: flex; gap: 20px; font-size: 15px; }

.footer-offices {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  padding-top: 36px;
  font-size: 15px;
  line-height: 1.7;
}
.footer-offices .label { color: var(--brass); font-size: 14px; margin-bottom: 6px; display: block; }

.footer-legal {
  margin-top: 36px;
  font-size: 13px;
  color: #6a6858;
}
