@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,500&display=swap');

/* ==========================================================
   longfjeld.com - Minimal Glass

   ENKLE INNSTILLINGER
   Endre disse verdiene først dersom du vil justere uttrykket.
   ========================================================== */
:root {
  --page-bg-a: #f5f4f1;
  --page-bg-b: #eef0ef;
  --page-bg-c: #f4f1ee;
  --text: #202326;
  --muted: rgba(32, 35, 38, 0.62);
  --quiet: rgba(32, 35, 38, 0.42);
  --faint: rgba(32, 35, 38, 0.30);

  --glass: rgba(255, 255, 255, 0.28);
  --glass-strong: rgba(255, 255, 255, 0.58);
  --glass-hover: rgba(255, 255, 255, 0.52);
  --glass-border: rgba(255, 255, 255, 0.62);
  --glass-blur: 20px;

  --blue-glow: rgba(176, 198, 204, 0.25);
  --warm-glow: rgba(216, 194, 174, 0.22);

  --content-width: 1120px;
  --layout-width: 760px;
  --reading-width: 670px;
  --radius-large: 30px;
  --radius-medium: 20px;
  --radius-pill: 999px;
}

/* Vanligvis trenger du ikke endre noe under denne linjen. */
* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg-b);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 13% 42%, var(--blue-glow) 0, transparent 27rem),
    radial-gradient(circle at 91% 85%, var(--warm-glow) 0, transparent 28rem),
    linear-gradient(145deg, var(--page-bg-a) 0%, var(--page-bg-b) 58%, var(--page-bg-c) 100%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  width: min(calc(100% - 40px), var(--content-width));
  min-height: calc(100vh - 40px);
  margin: 20px auto;
  padding: 28px 34px 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(125, 132, 136, 0.14);
  border-radius: var(--radius-large);
  background: rgba(248, 248, 246, 0.18);
}

.site-header {
  width: min(100%, var(--layout-width));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: #26292a;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.1vw, 2.35rem);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  font-variant-ligatures: common-ligatures discretionary-ligatures;
}

.project-nav {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
}

.project-nav a {
  min-height: 42px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  color: rgba(32, 35, 38, 0.58);
  font-size: 0.82rem;
  font-weight: 550;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.project-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.64);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 3px 10px rgba(48, 53, 56, 0.055);
}

@media (hover: hover) and (pointer: fine) {
  .project-nav a:hover,
  .project-link:hover,
  .button:hover {
    background: var(--glass-hover);
    color: var(--text);
  }
}

:focus-visible {
  outline: 2px solid rgba(70, 100, 112, 0.65);
  outline-offset: 3px;
}

.site-main {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(56px, 9vw, 108px) 0 clamp(42px, 6vw, 76px);
}

.home-intro,
.project-intro,
.project-sections {
  width: min(100%, var(--layout-width));
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--quiet);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: var(--layout-width);
  margin-bottom: 28px;
  color: var(--text);
  font-size: clamp(2.65rem, 5.8vw, 4.45rem);
  font-weight: 570;
  letter-spacing: -0.01em;
  line-height: 1.055;
  text-wrap: balance;
}

.home-intro > p,
.project-lead {
  max-width: var(--reading-width);
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.18rem);
  line-height: 1.62;
}

.project-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.project-link {
  min-height: 132px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-medium);
  color: var(--text);
  background: rgba(255, 255, 255, 0.32);
  text-decoration: none;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: background 160ms ease, transform 160ms ease;
}

.project-link__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-link__name {
  font-size: 0.95rem;
  font-weight: 650;
}

.project-link__arrow {
  color: var(--quiet);
  font-size: 1.05rem;
}

.project-link__desc {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.project-header-row {
  margin-bottom: 28px;
}

.back-link {
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 550;
  text-decoration: none;
}

.project-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: var(--radius-pill);
  color: rgba(32, 35, 38, 0.58);
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.72rem;
  font-weight: 600;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.project-page .site-main {
  align-items: flex-start;
}

.project-content {
  width: min(100%, var(--layout-width));
}

.project-sections {
  margin-top: 48px;
  display: grid;
  gap: 42px;
}

.info-section {
  padding-top: 2px;
}

.info-section + .info-section {
  padding-top: 42px;
  border-top: 1px solid rgba(32, 35, 38, 0.08);
}

.info-section h2 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 680;
  letter-spacing: -0.012em;
}

.info-section p,
.info-section li {
  max-width: var(--reading-width);
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.66;
}

.info-section p:last-child {
  margin-bottom: 0;
}

.info-section ul,
.info-section ol {
  max-width: var(--reading-width);
  margin: 12px 0 0;
  padding-left: 1.25rem;
}

.info-section li + li {
  margin-top: 6px;
}

.info-note {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 1px solid rgba(32, 35, 38, 0.16);
  color: var(--quiet) !important;
  font-size: 0.9rem !important;
}

.actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.button {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-pill);
  color: var(--text);
  background: var(--glass-strong);
  box-shadow: 0 5px 18px rgba(40, 46, 50, 0.055);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: background 160ms ease;
}

.button--quiet {
  border-color: rgba(55, 60, 63, 0.09);
  color: rgba(32, 35, 38, 0.67);
  background: rgba(255, 255, 255, 0.16);
}

.status {
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--quiet);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(74, 101, 91, 0.58);
  content: "";
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 760px);
  margin-inline: auto;
  color: var(--faint);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}

.site-footer a {
  text-decoration: none;
}

.not-found {
  text-align: center;
}

.not-found .button {
  margin-top: 12px;
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll;
  }

  .site-shell {
    width: min(calc(100% - 24px), var(--content-width));
    min-height: calc(100vh - 24px);
    margin: 12px auto;
    padding: 22px 18px 18px;
    border-radius: 24px;
  }

  .site-header {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .project-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-nav a {
    min-width: 0;
    padding: 0 5px;
    font-size: 0.76rem;
  }

  .site-main {
    align-items: flex-start;
    padding: 48px 7px 38px;
  }

  .eyebrow {
    margin-bottom: 17px;
  }

  h1 {
    margin-bottom: 24px;
    line-height: 1.06;
  }

  .project-grid {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .project-link {
    min-height: 108px;
  }

  .site-footer {
    padding: 0 2px;
  }
}

@media (max-width: 380px) {
  .project-nav a {
    font-size: 0.71rem;
  }

  h1 {
    font-size: 2.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: rgba(20, 23, 25, 0.82);
    --quiet: rgba(20, 23, 25, 0.68);
  }

  .project-nav,
  .project-link,
  .button,
  .tag {
    border-color: rgba(40, 45, 48, 0.28);
  }
}
