:root {
  color-scheme: light;
  --bg: #f5f4ed;
  --ink: #192922;
  --muted: #495a50;
  --accent: #245d47;
  --card: #fffdf7;
  --second: #e2ede5;
  --line: #b9c9bf;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #15201b;
  --ink: #f2f6ee;
  --muted: #c2cdc4;
  --accent: #ade0bb;
  --card: #202f27;
  --second: #263b30;
  --line: #52675c;
}
:root[data-theme="mono"] {
  --bg: #fff;
  --ink: #111;
  --muted: #444;
  --accent: #111;
  --card: #fff;
  --second: #efefef;
  --line: #777;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 1rem/1.55 system-ui,sans-serif; color: var(--ink); background: var(--bg); }
.wrap { width: min(100% - 2rem, 65rem); margin-inline: auto; }
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding-block: 1.15rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 720; text-decoration: none; }
.settings { display: flex; flex-wrap: wrap; gap: .5rem; }
select { max-width: 100%; min-height: 2.75rem; padding: .45rem .65rem; border: 1px solid var(--line); border-radius: 2rem; background: var(--card); color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; }
main { flex: 1; display: grid; align-content: center; gap: clamp(1.7rem,5vw,3.4rem); padding-block: clamp(2.8rem,8vw,6.2rem); }
h1 { margin: 0; max-width: 15ch; font: 500 clamp(2.9rem,9vw,6.8rem)/.99 Georgia,serif; letter-spacing: -.055em; }
h1 em { color: var(--accent); }
.cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; padding: clamp(1.25rem,4vw,2.2rem); border: 1px solid var(--line); border-radius: 1.5rem; background: var(--card); text-decoration: none; }
.card:nth-child(2) { background: var(--second); }
.card:hover .cta { text-decoration: underline; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.domain { color: var(--accent); font-size: .84rem; font-weight: 660; overflow-wrap: anywhere; }
h2 { margin: 0; font-size: clamp(1.5rem,4vw,2.15rem); line-height: 1.1; letter-spacing: -.03em; }
p { margin: 0; color: var(--muted); }
.cta { margin-top: auto; padding-top: .7rem; color: var(--accent); font-weight: 700; }
footer { padding-block: 1.3rem 1.7rem; border-top: 1px solid var(--line); text-align: center; font-size: .85rem; }
footer p + p { margin-top: .3rem; }
footer a { text-underline-offset: .16em; }
@media (max-width: 42rem) { .cards { grid-template-columns: 1fr; } }

:root { --header-height: 5rem; }
body { padding-top: var(--header-height); }
header { position: fixed; z-index: 2; inset: 0 0 auto; background: var(--card); padding: 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; height: var(--header-height); }
.settings { flex-wrap: nowrap; }
.control { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--second); }
.control svg { width: 21px; height: 21px; }
.control select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; padding: 0; }
.control:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.card { gap: .85rem; box-shadow: 0 12px 28px -24px var(--accent); transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; width: 100%; margin-bottom: .6rem; }
.cta { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--line); margin-top: auto; padding-top: 1rem; }
.cta > [aria-hidden] { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--bg); }
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}


.card-icon { display: grid; place-items: center; width: 3.15rem; height: 3.15rem; flex: none; border-radius: 1rem; border: 1px solid var(--line); background: var(--second); color: var(--accent); }
.card:nth-child(2) .card-icon { background: var(--card); }
.card-icon svg { width: 1.55rem; height: 1.55rem; }

.brand img { display: block; width: 2.25rem; height: 2.25rem; }
.brand { font: 500 clamp(1.35rem, 2.4vw, 2rem)/1 Georgia, serif; letter-spacing: -.035em; }
:root[data-theme="mono"] .brand img { filter: grayscale(1); }
.intro-copy { margin-top: clamp(1.2rem, 3vw, 2rem); }

.control { border: 0; background: none; }
.control-trigger {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--second);
  color: var(--ink);
  cursor: pointer;
}
.control-options {
  position: absolute;
  top: calc(100% + .65rem);
  right: 0;
  width: min(12rem, calc(100vw - 5rem));
  max-height: calc(100dvh - 5rem);
  overflow-y: auto;
  padding: .35rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 12px 30px #0002;
}
.control-options button {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: .5rem .75rem;
  border: 0;
  border-radius: .65rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: start;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.control-options button:is(:hover, :focus-visible, [aria-pressed="true"]) { background: var(--second); }
.control-options button:focus-visible { outline-offset: -2px; }
.control:focus-within { outline: none; }
