:root {
  --ink: #08203e;
  --muted: #526070;
  --paper: #fbfaf7;
  --line: #e3e0d9;
  --accent: #e36b16;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.page {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 52px) 0 36px;
}

.intro {
  max-width: 720px;
}

.logo {
  width: min(360px, 82vw);
  height: auto;
  margin-bottom: clamp(16px, 3vw, 28px);
}

h1 {
  margin: 0;
  font-size: clamp(2.45rem, 6.35vw, 5.35rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.lede {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.75vw, 1.28rem);
  line-height: 1.45;
}

.work {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(56px, 9vw, 96px);
}

.card {
  min-height: 178px;
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

a.card {
  transition: border-color 160ms ease, transform 160ms ease;
}

a.card:hover {
  border-color: rgba(227, 107, 22, 0.55);
  transform: translateY(-2px);
}

.card-heading {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1;
}

.dr-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.dr-wordmark {
  color: #000;
  font-family: "Bebas Neue", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(46px, 8vw, 84px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact h2 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.4;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

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

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(36px, 6vw, 64px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.site-footer p {
  color: var(--ink);
  font-weight: 500;
}

.site-footer p + p {
  color: var(--muted);
  font-weight: 400;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
}

.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-social svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer-link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.legal-page {
  max-width: 780px;
}

.legal-page h1 {
  margin-top: 34px;
  font-size: clamp(2.45rem, 6vw, 4.6rem);
}

.legal-page section {
  margin-top: 34px;
}

.legal-page h2 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.legal-page p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.legal-page a {
  color: var(--ink);
  font-weight: 800;
}

.legal-page a.contact-button {
  color: #fff;
}

.legal-page a.contact-button.secondary {
  color: var(--ink);
}

.legal-date {
  margin-top: 14px;
}

.legal-note {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 900;
}

.legal-back:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-page {
  max-width: 900px;
}

.contact-hero {
  margin-top: 34px;
}

.contact-logo {
  width: min(260px, 74vw);
  height: auto;
  margin-bottom: 24px;
}

.contact-hero h1 {
  margin-top: 0;
}

.contact-hero p {
  max-width: 720px;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-option {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

.contact-option p {
  margin-bottom: 0;
}

.contact-button.secondary {
  background: transparent;
  color: var(--ink);
}

.contact-button.secondary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.error-page {
  max-width: 720px;
}

.error-page .contact-button {
  margin-top: 28px;
}

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

  .card {
    min-height: 132px;
  }

  .contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer nav {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .footer-link-row {
    justify-content: flex-start;
  }

  .contact-options {
    grid-template-columns: 1fr;
  }
}
