@font-face {
  font-family: DM Sans;
  src: url("/assets/dm-sans-v2.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: DM Serif Display;
  src: url("/assets/dm-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --paper: #f7f8f2;
  --ink: #23342e;
  --muted: #64716a;
  --line: #dfe4d8;
  --accent: #d8ed9c;
  --green: #3d5849;
  --card: #fff;
  --radius: 28px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #617d3a;
  outline-offset: 5px;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button {
  color: inherit;
}
::selection {
  background: #d8ed9c;
}
main,
header,
footer {
  width: min(1120px, calc(100% - 64px));
  margin: auto;
}
header {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 31px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 23px;
  height: 30px;
  background: var(--green);
  border-radius: 80% 5% 70% 50%;
  transform: rotate(28deg);
}
nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
nav a,
.quiet-button {
  padding: 11px 18px;
  border-radius: 100px;
  color: var(--muted);
  font-size: 14px;
  border: 0;
  background: transparent;
}
nav a[aria-current],
nav a:hover,
.quiet-button:hover {
  background: #e9ede1;
  color: var(--ink);
}
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  padding: 65px 0 48px;
  gap: 48px;
}
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 18px;
}
h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(44px, 5.7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
}
.hero-note {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 310px;
  margin: 0 0 5px;
  justify-self: end;
}
.destinations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.destination {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 365px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  background: var(--card);
}
.destination:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px #23342e0e;
}
.destination:active {
  transform: translateY(-1px);
}
.destination-visual {
  height: 202px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: #e9efdf;
  overflow: hidden;
}
.apps-visual {
  background:
    radial-gradient(ellipse at 25% 80%, #e0e8d7 0, transparent 60%), #edf0e7;
}
.app-stack {
  display: flex;
  gap: 0;
  transform: rotate(-7deg);
}
.app-tile {
  width: 102px;
  height: 112px;
  border-radius: 24px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 14px 24px #344c371a;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffffc0;
}
.app-tile + .app-tile {
  transform: translate(-8px, 14px) rotate(15deg);
}
.app-tile img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 18px;
}
.notes-visual {
  background: #ece8e0;
}
.paper-note {
  width: 246px;
  height: 166px;
  background: #fffdf5;
  padding: 28px 25px;
  box-shadow: 0 12px 28px #62554413;
  transform: rotate(5deg) translateY(15px);
  border-radius: 5px;
  border-top: 7px solid #d2d7b7;
}
.paper-note span {
  display: block;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 24px;
  line-height: 1.2;
}
.note-line {
  height: 5px;
  background: #e6e8dd;
  border-radius: 5px;
  margin-top: 17px;
  width: 88%;
}
.note-line.short {
  width: 62%;
  margin-top: 10px;
}
.destination-copy {
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 5px 16px;
  align-items: center;
}
.destination-copy h2 {
  font-size: 25px;
  letter-spacing: -0.04em;
  margin: 0;
  font-weight: 600;
}
.destination-copy p {
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
  margin: 6px 0 0;
  max-width: 320px;
}
.round-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  border: 1px solid #d6dfcc;
  background: #f7faef;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 23px;
}
.recent {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 32px 0;
  color: var(--muted);
  font-size: 13px;
}
.recent span {
  font-weight: 600;
  color: var(--ink);
}
.recent a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}
.recent a:hover {
  border-color: var(--ink);
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 25px 0;
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
}
footer a:hover {
  text-decoration: underline;
}
.compact-hero {
  grid-template-columns: 1fr auto;
  padding-top: 42px;
  padding-bottom: 36px;
}
.compact-hero h1 {
  font-size: 55px;
}
.compact-hero .hero-note {
  font-size: 14px;
  max-width: 230px;
}
.library-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.app-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
}
.app-card-head {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 25px;
}
.app-icon {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 18px;
  background: #f6f7f2;
}
.app-card h2 {
  font-size: 24px;
  letter-spacing: -0.035em;
  margin: 0 0 5px;
}
.subtle {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}
.app-description {
  font-size: 15px;
  line-height: 1.65;
  color: #506057;
  min-height: 74px;
  margin: 0 0 24px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  gap: 12px;
  margin-bottom: 22px;
}
.facts dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.facts dd {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 100px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition:
    background 0.2s,
    transform 0.2s;
}
.primary-button:hover {
  background: #3e5546;
  transform: translateY(-1px);
}
.actions > .primary-button {
  flex: 1;
}
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #fff;
  padding: 11px 19px;
  font-size: 13px;
}
.secondary-button:hover {
  background: #f5f7f0;
}
.app-card details {
  margin-top: 23px;
  font-size: 13px;
  color: var(--muted);
}
summary {
  cursor: pointer;
  min-height: 26px;
}
details ul {
  line-height: 1.8;
  padding-left: 18px;
}
.hash {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  padding: 12px;
  background: #f6f7f2;
  border-radius: 10px;
  margin-top: 12px;
}
.install-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 26px 0;
}
.install-note strong {
  font-weight: 500;
  color: var(--ink);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  width: min(380px, calc(100% - 32px));
  box-shadow: 0 24px 100px #172b3133;
  color: var(--ink);
  background: var(--paper);
}
dialog::backdrop {
  background: #192d284d;
  backdrop-filter: blur(6px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.dialog-head h2 {
  font-size: 22px;
  margin: 0;
}
.close {
  border: 0;
  border-radius: 50%;
  background: #e8edde;
  width: 36px;
  height: 36px;
  font-size: 24px;
}
.qr-image {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  background: white;
  border-radius: 12px;
}
.dialog-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  border-radius: 100px;
  z-index: 20;
  font-size: 14px;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.login-wrap {
  display: grid;
  place-items: center;
  min-height: calc(100svh - 225px);
  padding: 30px 0 60px;
}
.login-card {
  width: min(430px, 100%);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #fff;
  padding: 40px;
}
.login-card h1 {
  font-size: 42px;
  margin-bottom: 13px;
}
.login-card > p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 28px;
}
.login-card label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin: 18px 0 8px;
}
.login-card input {
  width: 100%;
  height: 48px;
  border: 1px solid #cfd8c7;
  border-radius: 12px;
  padding: 0 14px;
  background: #fcfdf9;
  color: var(--ink);
  min-width: 0;
}
.password-field {
  display: flex;
  gap: 8px;
}
.password-field input {
  flex: 1;
}
.show-password {
  border: 1px solid var(--line);
  background: #f6f8f0;
  border-radius: 12px;
  font-size: 12px;
  padding: 0 12px;
}
.login-card .primary-button {
  width: 100%;
  margin-top: 24px;
}
.error {
  color: #9d3d27 !important;
  font-size: 13px !important;
  min-height: 20px;
  margin: 14px 0 0 !important;
}
.error:empty {
  display: none;
}
.loading-panel {
  padding: 48px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 28px;
}
.loading-panel button {
  margin-top: 12px;
}
.brand small {
  font:
    500 12px "DM Sans",
    sans-serif;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 15px;
  margin-left: 3px;
}
@media (max-width: 760px) {
  main,
  header,
  footer {
    width: calc(100% - 40px);
  }
  header {
    height: 88px;
  }
  .brand {
    font-size: 27px;
  }
  nav {
    gap: 0;
  }
  nav a,
  .quiet-button {
    padding: 10px 12px;
    font-size: 13px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 35px 0;
  }
  .hero-note {
    justify-self: start;
    max-width: 350px;
    font-size: 15px;
  }
  .destinations,
  .library-grid {
    grid-template-columns: 1fr;
  }
  .destination {
    min-height: 300px;
  }
  .destination-visual {
    height: 170px;
  }
  .destination-copy {
    padding: 24px;
  }
  .recent {
    flex-wrap: wrap;
    gap: 14px;
  }
  .recent > span {
    flex-basis: 100%;
  }
  .compact-hero h1 {
    font-size: 44px;
  }
  .compact-hero {
    gap: 16px;
  }
  .app-card {
    padding: 25px;
  }
  .app-description {
    min-height: 0;
  }
  .brand small {
    display: none;
  }
  footer {
    margin-top: 12px;
  }
  .login-card {
    padding: 30px;
  }
  .login-wrap {
    min-height: calc(100svh - 200px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

