/* DigitCube's Ocean palette, from the app icon: deep navy ink, cool grey
   ground and a bright ocean blue used for links and accents. */
:root {
  --ground: #f5f7fb;
  --surface: #e9eef7;
  --rule: #dbe2ee;
  --ink: #111a2e;
  --muted: #56607a;
  --accent: #2f7fe6;
  --link: #1f63c4;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0d1424;
    --surface: #17213a;
    --rule: #24304d;
    --ink: #eef2fa;
    --muted: #a4aec6;
    --link: #78b7ff;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.62 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}
.page.wide { max-width: 60rem; }

header.masthead {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--ink);
}
header.masthead img { width: 56px; height: 56px; }
header.masthead a.name {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
header.masthead nav {
  margin-left: auto;
  display: flex;
  gap: 1.1rem;
  font-size: 0.95rem;
}
header.masthead nav a { color: var(--muted); text-decoration: none; }
header.masthead nav a:hover,
header.masthead nav a[aria-current="page"] { color: var(--ink); }
header.masthead nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 2.5rem 0 1rem;
}
h2 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 0.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
h3 { font-size: 1.05rem; margin: 1.6rem 0 0.2rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; line-height: 1.5; }
.muted { color: var(--muted); }

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

.button {
  display: inline-block;
  margin: 0.5rem 0 1.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); }

figure { margin: 2rem 0; }
figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
figcaption { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); }

.contact {
  margin: 1.5rem 0 0.5rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border-left: 4px solid var(--accent);
}
.contact p { margin: 0; }
.contact .address { font-size: 1.25rem; font-weight: 700; word-break: break-word; }

kbd {
  font: 0.85em/1 ui-monospace, "SF Mono", Menlo, monospace;
  padding: 0.12em 0.4em;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--surface);
}
.menu { font-weight: 700; }

ul { padding-left: 1.2rem; margin: 0 0 1rem; }
li { margin: 0.35rem 0; }

footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}
footer a { color: var(--muted); }

@media (max-width: 30rem) {
  h1 { font-size: 2.1rem; margin-top: 2rem; }
  header.masthead { flex-wrap: wrap; }
  header.masthead nav { margin-left: 0; width: 100%; }
}
