/* softgarden.living — moderne slow-living landingsside */

:root {
  --bg: #F7F3EC;
  --bg-soft: #EFE9DD;
  --bg-card: #FBF8F2;
  --ink: #2E3A2A;
  --ink-soft: #5C6856;
  --ink-muted: #8A8678;
  --sage: #A8B59A;
  --sage-deep: #7B8C70;
  --rose: #D9B8A8;
  --line: rgba(46, 58, 42, 0.12);

  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --max-w: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.005em;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--sage); color: var(--bg); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.site-header__brand {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--bg);
  transition: color 0.4s ease;
}
.site-header__brand .dot { color: var(--rose); }
.site-header__ig {
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  transition: color 0.4s ease, background 0.25s ease;
}
.site-header__ig:hover { background: rgba(255,255,255,0.12); }

.site-header.is-scrolled {
  background: rgba(247, 243, 236, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line);
}
.site-header.is-scrolled .site-header__brand,
.site-header.is-scrolled .site-header__ig { color: var(--ink); }
.site-header.is-scrolled .site-header__ig:hover { background: rgba(46, 58, 42, 0.06); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end center;
  overflow: hidden;
  background: var(--ink);
  color: var(--bg);
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(216, 200, 178, 0.22), transparent 55%),
    radial-gradient(ellipse at 70% 70%, rgba(168, 181, 154, 0.30), transparent 60%),
    linear-gradient(160deg, #3D4A36 0%, #2E3A2A 60%, #25301F 100%);
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transition: opacity 0.6s ease;
}
.hero__media img:not([src]),
.hero__media img[src=""],
.hero__media img.is-missing { opacity: 0; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(46,58,42,0.18) 0%, rgba(46,58,42,0) 28%, rgba(46,58,42,0) 55%, rgba(46,58,42,0.55) 100%);
}
.hero__content {
  text-align: center;
  padding: 0 var(--gutter) clamp(3rem, 10vh, 6rem);
  max-width: 720px;
  position: relative;
}
.hero__eyebrow {
  margin: 0 0 1.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 400;
  opacity: 0.85;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-style: normal;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0 0 1rem;
}
.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  letter-spacing: 0.04em;
  margin: 0 0 2.5rem;
  opacity: 0.92;
}
.hero__scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: floaty 2.4s ease-in-out infinite;
}
.hero__scroll:hover { opacity: 1; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Tile placeholder mens bilder mangler */
.tile img:not([src]),
.tile img.is-missing { opacity: 0; }
.tile:has(img.is-missing) {
  background:
    repeating-linear-gradient(45deg, var(--bg-soft) 0 12px, var(--bg-card) 12px 24px);
}
.tile:has(img.is-missing)::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 28px; height: 28px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--sage);
  opacity: 0.45;
}

/* ===== Intro ===== */
.intro {
  padding: clamp(5rem, 12vw, 9rem) var(--gutter) clamp(3rem, 8vw, 5rem);
  text-align: center;
}
.intro__inner {
  max-width: 620px;
  margin: 0 auto;
}
.intro__lead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 2.5rem;
  letter-spacing: 0.005em;
}
.intro__tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.6rem;
}
.intro__tags li {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--sage-deep);
  letter-spacing: 0.02em;
  position: relative;
}
.intro__tags li + li::before {
  content: "·";
  position: absolute;
  left: -0.95rem;
  color: var(--ink-muted);
  font-style: normal;
}

/* ===== Feed ===== */
.feed {
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) clamp(4rem, 9vw, 6rem);
  max-width: var(--max-w);
  margin: 0 auto;
}
.feed__header {
  text-align: center;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
}
.feed__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.005em;
  margin: 0 0 0.6rem;
}
.feed__sub {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.feed__sub a { color: var(--sage-deep); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.feed__sub a:hover { color: var(--ink); }

.feed__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.5rem, 1.2vw, 1rem);
}
@media (min-width: 720px) {
  .feed__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .feed__grid { grid-template-columns: repeat(4, 1fr); }
}

.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--bg);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.tile.is-visible { opacity: 1; transform: translateY(0); }
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s ease;
}
.tile__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1rem 0.9rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.35;
  background: linear-gradient(to top, rgba(46,58,42,0.78), rgba(46,58,42,0) 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.tile__type {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  width: 22px; height: 22px;
  color: var(--bg);
  opacity: 0.92;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}
.tile:hover img { transform: scale(1.045); filter: brightness(0.92); }
.tile:hover .tile__caption { opacity: 1; transform: translateY(0); }
.tile:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }

.feed__cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn:hover { background: var(--sage-deep); transform: translateY(-1px); }
.btn svg { transition: transform 0.25s ease; }
.btn:hover svg { transform: translate(2px, -2px); }

/* ===== Coming soon ===== */
.comingsoon {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) clamp(4rem, 8vw, 5rem);
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.comingsoon p { margin: 0; }
.comingsoon span {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 1.4rem var(--gutter);
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
.site-footer a:hover { color: var(--ink); border-bottom-color: currentColor; }
.site-footer p { margin: 0; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .tile { opacity: 1; transform: none; }
}
