/* ============================================================
   Artefino — håndlavet keramik
   Palette: brændt ler + knogle. Type: Fraunces + Karla.
   ============================================================ */

:root {
  --bone: #f4eee3;        /* base background */
  --bone-2: #eae0cf;      /* alt section background */
  --ink: #2b211a;         /* dark clay-brown text */
  --ink-soft: #6b5b4d;    /* secondary text */
  --clay: #a3512c;        /* terracotta accent */
  --clay-deep: #7e3a1f;   /* accent hover */
  --clay-light: #c98a66;  /* accent on dark */
  --line: rgba(43, 33, 26, 0.16);
  --cream: #eae0cc;    /* blob shapes, fra marketingmaterialet */
  --sage: #c6cfb6;
  --sand: #dfcfba;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Karla", "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay — quiet texture over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--clay); color: var(--bone); }

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

a { color: inherit; }

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

.wrap {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem clamp(1.25rem, 5vw, 3rem);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.lang {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
}

.lang a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.2em 0.15em;
}

.lang a:hover { color: var(--clay-deep); }

.lang a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 2px solid var(--clay);
}

.lang span { color: var(--line); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  padding: 5rem 1.25rem 6rem;
}

.hero-inner { position: relative; z-index: 2; }

/* Organic background shapes — echoes the brand's marketing material */
.blobs {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.blob {
  position: absolute;
  display: block;
  animation: blob-drift 26s ease-in-out infinite;
}

.blob-1 {
  width: min(74vmin, 580px);
  height: min(74vmin, 580px);
  top: -14%;
  right: -12%;
  background: var(--cream);
  border-radius: 62% 38% 55% 45% / 55% 48% 52% 45%;
}

.blob-2 {
  width: min(60vmin, 470px);
  height: min(60vmin, 470px);
  bottom: -6%;
  left: -14%;
  background: var(--sage);
  border-radius: 45% 55% 60% 40% / 50% 42% 58% 50%;
  animation-duration: 32s;
  animation-delay: -9s;
}

.blob-3 {
  width: min(38vmin, 300px);
  height: min(38vmin, 300px);
  top: 56%;
  right: 12%;
  background: var(--sand);
  border-radius: 58% 42% 47% 53% / 46% 58% 42% 54%;
  animation-duration: 22s;
  animation-delay: -4s;
}

@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(2%, 3%) rotate(4deg); }
}

.eyebrow {
  margin: 0 0 1.2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--clay);
}

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.75rem, 16vw, 10.5rem);
  font-weight: 340;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.byline {
  margin: 0.7rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  letter-spacing: 0.06em;
  color: var(--clay);
}

.tagline {
  margin: 1.4rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 3.4vw, 1.7rem);
  color: var(--ink-soft);
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
}

.scroll-cue:hover { color: var(--clay-deep); }

.scroll-cue svg { animation: cue-bob 2.6s ease-in-out infinite; }

@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ---------- Sections ---------- */

section { padding-block: clamp(4.5rem, 10vw, 7.5rem); }

.sec-title {
  margin: 0 0 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 420;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* Hand-drawn squiggle under section headings */
.sec-title::after {
  content: "";
  display: block;
  width: 68px;
  height: 10px;
  margin-top: 0.85rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 10'%3E%3Cpath d='M1 6 C 9 1, 16 9, 24 5 S 39 2, 46 6 S 61 9, 67 4' fill='none' stroke='%23a3512c' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
}

.centered .sec-title::after { margin-inline: auto; }

/* ---------- About ---------- */

.about .wrap { max-width: 720px; }

.about p {
  margin: 0;
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ---------- Photos in the flow ---------- */

.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.about-photo {
  margin: 0;
  max-width: 420px;
}

.about-photo img {
  width: 100%;
  height: auto;
  border-radius: 3px;
}

@media (min-width: 820px) {
  .about .wrap { max-width: 1100px; }
  .about-grid { grid-template-columns: 7fr 5fr; gap: 4.5rem; }
  .about-photo { justify-self: end; }
}

/* Full-bleed mood photo */
.photo-band { margin: 0; }

.photo-band img {
  display: block;
  width: 100%;
  height: clamp(300px, 55vh, 560px);
  object-fit: cover;
}

/* Two photos side by side */
.duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.85rem, 3vw, 2.5rem);
  padding-block: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.duo figure { margin: 0; }

.duo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
}

@media (min-width: 820px) {
  .duo { padding-inline: clamp(3rem, 10vw, 8rem); }
  .duo .duo-late { margin-top: 3.5rem; }
}

/* Graceful placeholder when a photo file is missing */
.ph {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  background: var(--bone);
}

.ph::before {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1.5px dashed var(--clay);
  opacity: 0.5;
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
}

.ph span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  color: var(--ink-soft);
}

.no-img .ph { display: flex; }
.no-img img { display: none; }

/* ---------- Process (dark band) ---------- */

.process {
  background: var(--ink);
  color: var(--bone);
}

.process .sec-title::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 10'%3E%3Cpath d='M1 6 C 9 1, 16 9, 24 5 S 39 2, 46 6 S 61 9, 67 4' fill='none' stroke='%23c98a66' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
}

.steps {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 2.5rem;
}

.steps h3 {
  margin: 0.4rem 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.45rem;
}

.steps .step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--clay-light);
  line-height: 1;
}

.steps p {
  margin: 0;
  color: rgba(244, 238, 227, 0.75);
  max-width: 34ch;
}

@media (min-width: 640px) {
  .steps-4 { grid-template-columns: repeat(2, 1fr); gap: 2.75rem 3rem; }
}

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

@media (min-width: 1000px) {
  .steps-4 { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
}

.steps h3 { hyphens: manual; }

/* ---------- Maker ---------- */

.maker .wrap {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.maker-portrait { margin: 0; max-width: 380px; }

.maker-portrait img,
.maker-portrait .ph {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  /* liggende foto: hold ansigtet i udsnittet */
  object-position: 60% 22%;
  border-radius: 50%;
}

.maker-portrait .ph::before { border-radius: inherit; inset: 6%; }

.maker p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 52ch;
}

@media (min-width: 820px) {
  .maker .wrap { grid-template-columns: 5fr 7fr; gap: 4rem; }
}

.maker-inset {
  margin: 1.75rem 0 0;
  max-width: 260px;
}

.maker-inset img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--bone-2);
  text-align: center;
}

.contact .wrap { max-width: 640px; }

.contact p {
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 44ch;
}

.cta {
  display: inline-block;
  margin-top: 2.2rem;
  padding: 1rem 2.6rem;
  background: var(--clay);
  color: var(--bone);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.cta:hover {
  background: var(--clay-deep);
  transform: rotate(-1deg);
}

.email-plain {
  display: block;
  margin-top: 1.1rem;
  font-size: 1rem;
  color: var(--ink-soft);
  text-decoration-color: var(--clay);
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.site-footer p { margin: 0; }

.footer-addr {
  margin-bottom: 0.5rem !important;
  font-style: normal;
  color: var(--ink);
}

/* ---------- Scroll reveal (JS adds .js to <html>) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob,
  .scroll-cue svg { animation: none; }
  .cta { transition: none; }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
