/* moaner.dk – plain CSS, no build step.

   Design system
   - Colour: white canvas. Purple is the ink (headings, panels), orange the single
     accent (full stops, links, numbers), teal a quiet secondary (eyebrows).
     No gradients.
   - Type: Open Sans. Display 800 with tight tracking, body 400.
     Scale: 72 / 44 / 22 / 18 / 17 / 13 px.
   - Layout: 1120px container on a 12-column grid. 8px spacing base.
     Sections are separated by hairlines, not boxes.
*/

@font-face {
  font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-stretch: 100%; font-display: swap;
  src: url(../fonts/open-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-stretch: 100%; font-display: swap;
  src: url(../fonts/open-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --purple: #340746;
  --purple-dark: #24042f;
  --orange: #ffb055;
  --orange-ink: #c77a1f;   /* orange dark enough to read on white */
  --teal: #69bac9;
  --teal-ink: #1f7f9e;     /* teal dark enough to read on white */
  --ink: #1d1424;
  --muted: #5e5566;
  --line: #e6e0ea;
  --on-purple: #d8cce1;
  --line-purple: rgba(255, 255, 255, .14);

  --gap: clamp(1.5rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8rem);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--orange); color: var(--purple); }
[id] { scroll-margin-top: 96px; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 1rem; z-index: 100; padding: .6rem 1rem; background: var(--orange); color: var(--purple); font-weight: 700; }
.skip:focus { left: 1rem; }

/* Type */
h1, h2, h3 { margin: 0; color: var(--purple); text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.5rem); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.dot { color: var(--orange); }
.eyebrow { margin: 0 0 1rem; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); }
.lead { max-width: 34em; margin-top: 1.5rem; font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--purple); }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 88px; }
.brand img { width: 184px; }
.nav { display: flex; gap: clamp(1.25rem, 3.5vw, 2.75rem); }
.nav a { color: var(--orange); font-size: 1.15rem; font-weight: 700; text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; }

/* Hero */
/* Same solid purple as the menu bar, so header and hero read as one block. */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 6.5rem); background: var(--purple); }
.hero h1 { color: #fff; }
.hero .lead { color: var(--on-purple); }
.hero__photo img { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.hero + .section { padding-top: var(--section); }
.hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; }
.hero__text { grid-column: 1 / span 7; }
.hero__photo { grid-column: 8 / span 5; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 80% 35%; border-radius: 12px; }

/* Sections */
.section { padding: 0 0 var(--section); }
.section--tint { padding: var(--section) 0; background: #f6f2f8; }
.section--pad { padding-top: var(--section); }
.section__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head > div { grid-column: 1 / span 7; }
.section__lead { grid-column: 8 / span 5; margin: 0; padding-top: .4rem; font-size: 1.0625rem; color: var(--muted); }

/* Icons – two-colour print look: a solid brand-colour fill, slightly offset,
   under a purple line drawing. No container. */
.ico { display: block; flex: none; width: 40px; height: 40px; line-height: 0; }
.ico svg { width: 100%; height: 100%; overflow: visible; }
.ico__fill { fill: var(--orange); stroke: none; transform: translate(1.6px, 1.6px); }
.ico--teal .ico__fill { fill: var(--teal); }
.ico__line { fill: none; stroke: var(--purple); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Projects – card grid */
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
/* Each card spans 5 shared rows (top | title | kind | main | tech) via subgrid,
   so titles, texts and the Teknologi lines align across every row of cards. */
.card {
  display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0;
  padding: 1.5rem; background: #fff;
  border: 1px solid var(--line); border-radius: 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 22px 44px -22px rgba(52, 7, 70, .35); }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.badge { padding: .25rem .6rem; border-radius: 999px; background: #f1ecf4; color: var(--purple); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.badge--live { background: #e3f3f6; color: #145e75; }
.card h3 { margin-bottom: .2rem; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.card__kind { margin: 0 0 .75rem; font-size: .875rem; font-weight: 600; color: var(--teal-ink); }
.card__main { padding-bottom: 1.25rem; }
.card__desc { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.card__tech { align-self: start; padding-top: 1rem; border-top: 1px solid var(--line); }
.card__label { margin: 0 0 .5rem; font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.chips li { padding: .2rem .7rem; border-radius: 999px; background: #ffead1; color: #7a420c; font-size: .75rem; font-weight: 700; }
.card__link { display: inline-block; margin-top: .75rem; color: var(--orange-ink); font-size: .9375rem; font-weight: 800; text-decoration: none; }
.card__link:hover { text-decoration: underline; text-underline-offset: .25em; }
.card--cta { display: flex; flex-direction: column; justify-content: space-between; background: var(--purple); border-color: var(--purple); color: var(--on-purple); }
.card--cta:hover { border-color: var(--purple); }
.card--cta h3 { color: #fff; font-size: 1.5rem; line-height: 1.15; }
.card--cta p { margin: .75rem 0 0; font-size: .9375rem; }
.card--cta a { margin-top: 1.5rem; color: var(--orange); font-weight: 800; text-decoration: none; }
.card--cta a:hover { text-decoration: underline; text-underline-offset: .25em; }

/* Services – white cards on a tinted band */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.service { padding: 1.75rem; background: #fff; border-radius: 18px; }
.service .ico { margin-bottom: 1.25rem; }
.service h3 { margin: 0 0 .5rem; font-size: 1.125rem; font-weight: 800; letter-spacing: -.015em; }
.service p { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
/* Same column split as the other section heads (heading left, text from column 8), tops aligned. */
.about { align-items: start; }
.about > div:first-child { grid-column: 1 / span 6; }
.about__text { grid-column: 8 / span 5; padding-top: .4rem; font-size: 1.0625rem; color: var(--muted); }

/* Contact */
.contact { padding: var(--section) 0; background: var(--purple); color: var(--on-purple); }
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--teal); }
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.contact__grid > div:first-child { grid-column: 1 / span 6; }
.contact__lead { margin-top: 1.25rem; font-size: 1.125rem; }
.contact__links { grid-column: 8 / span 5; }
.contact__links a { display: block; width: fit-content; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; text-decoration: none; }
.contact__links a:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px; }
.contact__mail { font-size: clamp(1.5rem, 3.4vw, 2.25rem); color: var(--orange); }
.contact__phone { margin-top: .5rem; font-size: clamp(1.25rem, 2.6vw, 1.75rem); color: #fff; }
.contact__meta { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line-purple); font-size: .9375rem; }

/* Footer */
.foot { padding: 1.25rem 0; background: var(--purple-dark); color: #a493b0; font-size: .8125rem; }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--orange); }

/* Tablet / mobile */
@media (max-width: 900px) {
  .hero__text, .hero__photo,
  .section__head > div, .section__lead,
  .about > div:first-child, .about__text,
  .contact__grid > div:first-child, .contact__links { grid-column: 1 / -1; }
  .hero__photo { max-width: 440px; }
  .section__lead { margin-top: -.5rem; }
  .services { grid-template-columns: 1fr; }
  .about__text { padding-top: 0; }
}
@media (max-width: 1100px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .projects { grid-template-columns: 1fr; }
  .service { padding: 1.5rem; }
  [id] { scroll-margin-top: 76px; }
  .top__inner { height: 68px; }
  .nav { gap: 1rem; }
  .nav a { font-size: 1rem; }
  .nav a:nth-child(3) { display: none; }   /* keep the header to three links on phones */
  .brand img { width: 120px; }
}
