/* ---------- basic site style ---------- */

:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --text: #161613;
  --muted: #555044;
  --accent: #1f6e7a;
  --border: #c8bfae;
  --max-width: 840px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
}

/* ---------- page layout ---------- */

.site-header,
main,
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
}

main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- typography ---------- */

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: normal;
}

h1 {
  font-size: 2rem;
  margin-top: 0;
}

h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

p {
  margin: 1rem 0;
}

ul,
ol {
  padding-left: 1.5rem;
}

li {
  margin: 0.35rem 0;
}

/* ---------- links ---------- */

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover,
a:focus {
  text-decoration-thickness: 2px;
}

/* ---------- header and navigation ---------- */

.site-title {
  display: block;
  font-weight: bold;
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-start;
}

.site-nav a,
.site-nav summary {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: " ▾";
  font-size: 0.85em;
}

.dropdown-menu {
  position: absolute;
  z-index: 10;
  min-width: 230px;
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: 2px 2px 0 var(--border);
}

.dropdown-menu a {
  display: block;
  margin: 0.35rem 0;
}

/* ---------- simple content blocks ---------- */

.note,
.service-card,
.callout {
  border: 1px solid var(--border);
  background: var(--paper);
  padding: 1rem;
  margin: 1.25rem 0;
}

.service-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.small {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- buttons / calls to action ---------- */

.cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: var(--paper);
  text-decoration: none;
}

.cta:hover,
.cta:focus {
  background: #ffffff;
}

/* ---------- mobile ---------- */

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .site-header,
  main,
  .site-footer {
    padding: 1rem;
  }

  .site-nav {
    display: block;
  }

  .site-nav a,
  .nav-dropdown {
    display: block;
    margin: 0.5rem 0;
  }

  .dropdown-menu {
    position: static;
    margin: 0.5rem 0 1rem 1rem;
    box-shadow: none;
  }
}