/* ============ Font (self-hosted) ============ */
@font-face { font-family: "Manrope"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 600; font-style: italic; font-display: swap; src: url("/assets/fonts/fraunces-latin-600-italic.woff2") format("woff2"); }

/* ============ Token ============ */
:root {
  --cream: #F4EEE3;
  --forest: #1E3B2F;
  --moss: #4F6B4A;
  --terracotta: #D46A3A;
  --peach: #FBE7DC;
  --ink: #4A5A4E;
  --muted: #6B786E;
  --faint: #8A948C;
  --white: #FFFFFF;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 600px;       /* tablet */
  --gutter: 20px;
  --hero-h: 340px;
  --avatar: 112px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-soft: 0 4px 12px rgb(30 59 47 / .06);
  --shadow-card: 0 12px 28px -6px rgb(30 59 47 / .22);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 15px/1.45 var(--font-body);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  height: var(--hero-h);
}
.hero__art {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}
.avatar {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: var(--avatar);
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  border: 5px solid var(--cream);
  background: linear-gradient(135deg, var(--moss), var(--forest));
  box-shadow: 0 8px 24px rgb(30 59 47 / .25);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar__initial {
  font: italic 600 calc(var(--avatar) * .46) / 1 var(--font-display);
  color: var(--cream);
}

/* ============ Identity ============ */
.identity {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 14px var(--gutter) 0;
  text-align: center;
}
.identity__name {
  font: 600 32px/1.1 var(--font-display);
  letter-spacing: -.02em;
  color: var(--forest);
}
.identity__handle {
  margin-top: 6px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--terracotta);
}
.identity__bio {
  margin-top: 12px;
  font-size: 14px;
}
.identity__bio strong { font-weight: 600; color: var(--forest); }
.identity__bio a {
  font-weight: 600;
  color: var(--terracotta);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.socials a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgb(255 255 255 / .7);
  border: 1px solid rgb(30 59 47 / .12);
  color: var(--forest);
  transition: background-color .15s;
}
.socials a:hover { background: var(--white); }
.socials svg { width: 22px; height: 22px; }

/* ============ Links ============ */
.links {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 28px var(--gutter) 0;
  display: grid;
  gap: 14px;
}

.featured {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--forest);
  box-shadow: var(--shadow-card);
}
.featured__cover {
  position: relative;
  height: 160px;
}
.featured__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}
.tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--cream);
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.featured__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 20px 20px;
}
.featured__title {
  font: 600 22px/1.2 var(--font-display);
  color: var(--cream);
}
.featured__text { font-size: 14px; color: #C9D3C4; }
.btn {
  margin-top: 4px;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--terracotta);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  transition: filter .15s;
}
.featured:hover .btn { filter: brightness(1.07); }

.link-grid { display: grid; gap: 14px; }

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 14px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid rgb(30 59 47 / .08);
  box-shadow: var(--shadow-soft);
  color: var(--forest);
}
a.link:hover { border-color: rgb(30 59 47 / .2); }
.link__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--peach);
  color: var(--terracotta);
}
.link__icon svg { width: 22px; height: 22px; }
.link__text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.link__title { font-weight: 700; font-size: 16px; }
.link__sub { font-size: 13px; color: var(--muted); }
.link__arrow { flex: none; width: 18px; height: 18px; }

.link--soon {
  background: rgb(255 255 255 / .45);
  border: 1px dashed rgb(30 59 47 / .25);
  box-shadow: none;
  color: var(--muted);
  cursor: default;
}
.link--soon .link__icon { background: #E9E4DA; color: var(--faint); }
.link--soon .link__sub { color: #9AA39C; }
.badge {
  flex: none;
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--peach);
  color: var(--terracotta);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ============ Gear ============ */
.gear {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 32px var(--gutter) 0;
}
.gear__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.gear__head h2 {
  font: 600 22px/1.2 var(--font-display);
  color: var(--forest);
}
.gear__head a { font-weight: 700; font-size: 13px; color: var(--terracotta); }

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.product--wide { display: none; }   /* 4° e 5° prodotto solo su desktop */
.product {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 8px 8px 12px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid rgb(30 59 47 / .08);
}
.product:hover { border-color: rgb(30 59 47 / .2); }
.product img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
}
.product__name { font-weight: 700; font-size: 13px; color: var(--forest); line-height: 1.25; }
.product__cta { margin-top: auto; font-weight: 600; font-size: 11px; color: var(--terracotta); }

/* ============ Footer ============ */
.footer {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 36px 28px 40px;
  text-align: center;
  font-size: 11px;
  color: var(--faint);
}
.footer__copy { margin-top: 8px; font-weight: 600; color: var(--moss); }

/* ============ Tablet ≥ 640px ============ */
@media (min-width: 640px) {
  :root {
    --hero-h: 380px;
    --avatar: 128px;
  }
  .identity__name { font-size: 40px; }
  .identity__bio { font-size: 16px; }
  .links { gap: 16px; }
  .link-grid { gap: 16px; }
  .featured__cover { height: 200px; }
  .featured__text { font-size: 15px; }
  .footer { font-size: 12px; }
}

/* ============ Desktop ≥ 1024px ============ */
@media (min-width: 1024px) {
  :root {
    --container: 1040px;
    --hero-h: 440px;
    --avatar: 144px;
  }
  .identity { max-width: 720px; }
  .identity__name { font-size: 48px; }
  .identity__handle { font-size: 16px; }
  .identity__bio { font-size: 17px; }

  .links { padding-top: 40px; gap: 20px; }

  .featured { flex-direction: row; }
  .featured__cover { flex: 0 0 480px; height: 320px; }
  .featured__body {
    flex: 1;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    padding: 32px 48px;
  }
  .featured__title { font-size: 40px; }
  .featured__text { font-size: 17px; max-width: 42ch; }
  .btn { padding: 16px 28px; }

  .link-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .gear { padding-top: 56px; }
  .gear__head h2 { font-size: 30px; }
  .products { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .product--wide { display: block; }
  .product { padding: 10px 10px 14px; }
  .product__name { font-size: 15px; }
  .product__cta { font-size: 13px; }

  .footer { padding-top: 56px; padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
