:root {
  color-scheme: light;
  --bg: #f6f3ed;
  --paper: #fffdfa;
  --ink: #17221e;
  --muted: #64716d;
  --line: #d9d0c1;
  --soft-line: #ebe3d7;
  --green: #315f54;
  --green-2: #244940;
  --red: #94352d;
  --red-2: #7d2a23;
  --sand: #fbf8f1;
  --shadow: 0 18px 55px rgba(47, 42, 33, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 10%, rgba(49, 95, 84, 0.13), transparent 32%),
    linear-gradient(rgba(23, 34, 30, 0.026) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 100% 42px, auto;
}

[hidden] {
  display: none !important;
}

button,
input {
  font: inherit;
}

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

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

.page {
  display: grid;
  justify-items: center;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(58px, 13vh, 128px) 0 48px;
}

.tracker {
  display: grid;
  justify-items: center;
  width: 100%;
  text-align: center;
}

.kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(46px, 8vw, 84px);
  font-weight: 760;
  line-height: 0.95;
  letter-spacing: 0;
}

h1 small {
  color: var(--muted);
  font-size: 0.42em;
  font-weight: 400;
}

.intro {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 17px;
}

.search-card,
.result-panel,
.ad-space {
  width: min(680px, 100%);
  background: rgba(255, 253, 250, 0.9);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.search-card {
  padding: 14px;
}

.mode-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px;
  background: #eee7dc;
  border-radius: 8px;
}

.tracking-tab {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.tracking-tab.active {
  color: #fff;
  background: var(--green);
}

.search-shell {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 8px 0 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.search-shell:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(49, 95, 84, 0.12);
}

.search-icon {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid var(--green);
  border-radius: 50%;
}

.search-icon::after {
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 9px;
  height: 2px;
  content: "";
  background: var(--green);
  border-radius: 999px;
  transform: rotate(45deg);
}

input {
  min-width: 0;
  height: 56px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 20px;
  text-transform: uppercase;
}

input::placeholder {
  color: #8b918d;
}

.track-button {
  min-height: 44px;
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
}

.hint {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hint.error {
  color: var(--red);
}

.result-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 18px;
  text-align: left;
}

.result-label {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.result-panel h2 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.2;
}

.result-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.secondary,
.primary-link,
.text-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.secondary {
  color: var(--ink);
  background: var(--sand);
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.text-button {
  min-height: 30px;
  padding: 0 10px;
  color: var(--green);
  background: transparent;
  border-color: transparent;
}

.ad-space {
  display: grid;
  place-items: center;
  min-height: 120px;
  margin-top: 28px;
  color: var(--muted);
  border-style: dashed;
  box-shadow: none;
  font-size: 14px;
}

.email-tab {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 11px;
  color: var(--green);
  background: rgba(255, 253, 250, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(47, 42, 33, 0.1);
  font-size: 12px;
  font-weight: 750;
}

.email-tab:focus-visible {
  outline: 3px solid rgba(49, 95, 84, 0.22);
  outline-offset: 3px;
}

.site-footer {
  width: min(680px, 100%);
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.content-header,
.content-card {
  background: rgba(255, 253, 250, 0.9);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.content-header {
  padding: clamp(24px, 5vw, 42px);
  box-shadow: var(--shadow);
}

.content-header h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(36px, 7vw, 64px);
}

.content-header p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.content-card {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 32px);
}

.content-card h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.content-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.content-card p,
.content-card li {
  color: var(--muted);
}

.content-card p:last-child,
.content-card ul:last-child {
  margin-bottom: 0;
}

.content-card a,
.back-link {
  color: var(--green);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.format-example {
  display: inline-block;
  margin: 4px 0;
  padding: 4px 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
}

.page-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 22px, 920px);
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .search-shell {
    grid-template-columns: 24px 1fr;
    padding-right: 14px;
    border-radius: 18px;
  }

  .track-button {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }

  .result-panel {
    display: grid;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .email-tab {
    right: 10px;
    bottom: 10px;
  }

}
