:root {
  color-scheme: light;
  --background: #f7f6f1;
  --surface: #fdfcf8;
  --text: #171713;
  --muted: #66655e;
  --border: #d8d6cc;
  --accent: #315f52;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 280px;
  background: var(--background);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

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

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

.site-shell {
  width: min(100% - 40px, 960px);
  margin-inline: auto;
  padding: clamp(64px, 12vw, 144px) 0 64px;
}

.hero {
  max-width: 620px;
  margin-bottom: clamp(56px, 9vw, 96px);
}

h1 {
  margin: 0;
  font-family: "Spencerian Script", "Edwardian Script ITC", "Snell Roundhand", "Segoe Script", cursive;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.9;
}

.subtitle {
  max-width: 38ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.card:hover,
.card:focus-within,
.card.is-open {
  border-color: #aaa89f;
  background: #fffefa;
}

.card-toggle {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  text-align: left;
}

.toggle-mark {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.toggle-mark::before,
.toggle-mark::after {
  position: absolute;
  top: 6px;
  left: 1px;
  width: 12px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.toggle-mark::after {
  transform: rotate(90deg);
}

.card.is-open .toggle-mark::after {
  transform: rotate(0);
}

.card-content {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 240ms ease, visibility 240ms;
}

.card-content-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease, padding 240ms ease;
}

.card.is-open .card-content {
  grid-template-rows: 1fr;
  visibility: visible;
}

.card.is-open .card-content-inner {
  padding-bottom: 20px;
  opacity: 1;
  transform: translateY(0);
}

.contact-list {
  margin: 0;
}

.contact-list > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.contact-list dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.contact-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

.card-description {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.tool-list {
  border-top: 1px solid var(--border);
}

.tool-entry {
  display: flex;
  min-height: 92px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 2px;
  text-decoration: none;
}

.tool-entry strong,
.tool-entry small {
  display: block;
}

.tool-entry strong {
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.tool-entry small {
  max-width: 40ch;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.tool-arrow {
  color: var(--accent);
  font-size: 1rem;
  transition: transform 180ms ease;
}

.tool-entry:hover .tool-arrow {
  transform: translate(2px, -2px);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover .card-content {
    grid-template-rows: 1fr;
    visibility: visible;
  }

  .card:hover .card-content-inner {
    padding-bottom: 20px;
    opacity: 1;
    transform: translateY(0);
  }

  .card:hover .toggle-mark::after {
    transform: rotate(0);
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 28px, 960px);
    padding-top: 48px;
  }

  .hero {
    margin-bottom: 48px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card-toggle {
    min-height: 60px;
  }
}

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