/* tanso.market — Scandinavian minimal: warm white, pine green, blush pink, generous whitespace */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --nordic: #f8f4f0;
  --pine: #3a6a50;
  --pine-soft: #7a9a70;
  --charcoal: #3a3632;
  --blush: #d4847a;
  --rule: #e8e0d4;
  --fog: #a8a4a0;
}

html, body {
  background: var(--nordic);
  color: var(--charcoal);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

body {
  opacity: 0;
  animation: fade 0.9s ease 0.1s forwards;
}

@keyframes fade { to { opacity: 1; } }

main { padding-bottom: 4rem; }

/* ---------- Floating menu icon ---------- */
.skip-icon {
  position: fixed;
  top: 1.4rem;
  right: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--nordic);
  color: var(--charcoal);
  display: grid;
  place-items: center;
  z-index: 50;
  text-decoration: none;
  border: 1px solid var(--rule);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.skip-icon:hover {
  border-color: var(--pine);
  color: var(--pine);
}

/* ---------- Overlay nav ---------- */
.overlay-nav {
  position: fixed;
  inset: 0;
  background: var(--nordic);
  z-index: 40;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.overlay-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.overlay-inner {
  text-align: center;
  max-width: 600px;
  padding: 2rem;
}

.overlay-close {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--charcoal);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.overlay-close:hover { color: var(--blush); border-color: var(--blush); }

.overlay-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.4rem;
}

.overlay-nav a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--charcoal);
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.overlay-nav a:hover {
  color: var(--pine);
}

.overlay-hint {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: var(--fog);
  letter-spacing: 0.05em;
}

.overlay-hint span {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  margin: 0 0.1rem;
  color: var(--charcoal);
  background: var(--nordic);
}

/* ---------- Centered narrow column ---------- */
.column,
.opening,
.foot-inner,
.foot-meta {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

.column { padding-top: 5rem; padding-bottom: 5rem; }

/* ---------- Opening ---------- */
.opening {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.opening-row {
  display: flex;
  align-items: flex-end;
  gap: 1.4rem;
  margin-bottom: 2.4rem;
}

.title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 6vw, 56px);
  letter-spacing: 0.42em;
  color: var(--charcoal);
  line-height: 1;
  animation: titleSpace 1.4s cubic-bezier(.2,.7,.2,1) 0.4s both;
}

.title .t-dot { color: var(--blush); }
.title .t-market { color: var(--pine); }

@keyframes titleSpace {
  0%   { letter-spacing: 0.6em; opacity: 0; }
  100% { letter-spacing: 0.04em; opacity: 1; }
}

.leaf-mark {
  width: clamp(36px, 5vw, 56px);
  height: auto;
}

.leaf-mark path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: leafDraw 1.6s ease 1.2s forwards;
}

.leaf-mark #leafVein {
  animation-delay: 1.8s;
}

@keyframes leafDraw {
  to { stroke-dashoffset: 0; }
}

.lede {
  font-family: 'Inter', sans-serif;
  font-size: clamp(17px, 1.8vw, 21px);
  color: var(--charcoal);
  max-width: 38ch;
  margin-bottom: 2.2rem;
  opacity: 0;
  animation: rise 0.9s ease 1.6s forwards;
}

.opening-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--fog);
  opacity: 0;
  animation: rise 0.9s ease 1.8s forwards;
}

.opening-meta .dot { color: var(--blush); }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Mono helpers ---------- */
.mono {
  font-family: 'Space Mono', 'IBM Plex Mono', monospace;
  letter-spacing: 0.01em;
}

.small { font-size: 0.82rem; }

/* ---------- Underline-draw links ---------- */
.udraw, a.udraw {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--blush), var(--blush));
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 320ms ease, color 320ms ease;
  padding-bottom: 1px;
}

.udraw:hover { background-size: 100% 1.5px; }

a { color: var(--pine); }

/* ---------- Rules ---------- */
.rule {
  border: none;
  border-top: 1px solid var(--rule);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Leaf section markers ---------- */
.leaf-marker {
  margin-bottom: 2rem;
  width: 60px;
  opacity: 0.85;
}

.leaf-marker svg {
  width: 60px;
  height: 30px;
  display: block;
}

/* ---------- Headings ---------- */
.kicker {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--blush);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.12;
  margin-bottom: 1.6rem;
  color: var(--charcoal);
  letter-spacing: -0.005em;
}

p { margin-bottom: 1rem; }

/* ---------- Listings ---------- */
.listings {
  list-style: none;
  margin-top: 2.4rem;
  border-top: 1px solid var(--rule);
}

.listings li {
  border-bottom: 1px solid var(--rule);
}

.listing {
  display: grid;
  grid-template-columns: 84px 1fr 60px 130px;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0;
  text-decoration: none;
  color: var(--charcoal);
  transition: color 0.3s ease;
  position: relative;
}

.listing::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1.5px;
  width: 0;
  background: var(--blush);
  transition: width 0.45s ease;
}

.listing:hover { color: var(--pine); }
.listing:hover::after { width: 100%; }

.l-id { font-size: 0.78rem; color: var(--fog); }
.l-name { font-size: 1rem; }
.l-region { font-size: 0.78rem; color: var(--fog); text-align: right; }
.l-price {
  font-size: 0.95rem;
  text-align: right;
  color: var(--pine);
}
.l-price span {
  color: var(--fog);
  font-size: 0.72rem;
  margin-left: 0.2rem;
}

.footnote {
  margin-top: 1.4rem;
  font-size: 0.78rem;
  color: var(--fog);
}

/* ---------- How list ---------- */
.how-list {
  list-style: none;
  margin-top: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.how-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  align-items: baseline;
}

.step {
  font-size: 0.95rem;
  color: var(--blush);
  letter-spacing: 0.12em;
}

.how-list strong {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  display: block;
  margin-bottom: 0.4rem;
  color: var(--charcoal);
}

/* ---------- Standards ---------- */
.standards {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 0.9rem;
}

.standards li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}

.standards .mono {
  display: inline-block;
  width: 56px;
  color: var(--pine);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* ---------- Letter ---------- */
.letter p {
  font-family: 'Inter', serif;
  max-width: 56ch;
}

.signoff {
  font-style: italic;
  color: var(--fog);
  margin-top: 2rem;
}

.signoff a {
  color: var(--charcoal);
}

/* ---------- Footer ---------- */
.foot {
  padding-top: 3rem;
  padding-bottom: 3rem;
  margin-top: 2rem;
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.foot-mark {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.16em;
  color: var(--charcoal);
}

.foot-mark span { color: var(--pine); }

.foot-rule {
  max-width: 600px;
  margin: 1.4rem auto;
  height: 1px;
  background: var(--rule);
}

.foot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--fog);
  align-items: center;
}

.foot-meta .dot { color: var(--blush); }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .listing {
    grid-template-columns: 70px 1fr;
    grid-row-gap: 0.4rem;
  }
  .l-region, .l-price {
    grid-column: 2;
    text-align: left;
  }
  .opening-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .leaf-mark { width: 40px; }
}
