/*
 * fabero.se interim page: Fabero the property company only (2026-10-12).
 * Tokens, header, contact and footer port the Start view of
 * design/reference/fabero.se.dc.html. One switch below 860 px.
 *
 * Served with a one-year immutable cache: change this file only together
 * with a new version in its name (site.v3.css …) and in every <link>.
 */

/* ── Fonts (self-hosted, latin subset) ─────────────────────────────── */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-v21-latin-500.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;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-v21-latin-500italic.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;
}

/* One variable file covers Inter 400 and 600. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-v20-latin-wght.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;
}

/* Metric-matched fallbacks (same overrides the Astro build computes), so
   the swap to the web fonts barely moves the layout. */
@font-face {
  font-family: "Cormorant Garamond fallback";
  src: local("Times New Roman");
  size-adjust: 88.3692%;
  ascent-override: 104.5613%;
  descent-override: 32.4774%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Inter fallback";
  src: local("Arial");
  size-adjust: 107.1194%;
  ascent-override: 90.4365%;
  descent-override: 22.518%;
  line-gap-override: 0%;
}

/* ── Tokens ────────────────────────────────────────────────────────── */

:root {
  --navy: #00233f;
  --navy-raised: #0b3355;
  --cream: #f7f4ec;
  --gold: #c39a5f;
  --gold-ink: #8a6633;
  --slate: #3d4f63;
  --line: #dcd8ce;

  --cream-92: rgb(247 244 236 / 0.92);
  --cream-86: rgb(247 244 236 / 0.86);
  --cream-84: rgb(247 244 236 / 0.84);
  --cream-76: rgb(247 244 236 / 0.76);
  --cream-70: rgb(247 244 236 / 0.7);
  --cream-60: rgb(247 244 236 / 0.6);
  --cream-20: rgb(247 244 236 / 0.2);
  --gold-50: rgb(195 154 95 / 0.5);
  --gold-45: rgb(195 154 95 / 0.45);
  --gold-40: rgb(195 154 95 / 0.4);
  --gold-35: rgb(195 154 95 / 0.35);

  --font-display:
    "Cormorant Garamond", "Cormorant Garamond fallback", ui-serif, Georgia,
    "Times New Roman", serif;
  --font-sans:
    "Inter", "Inter fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 32px);
  --header-h: 96px;
  --ease: cubic-bezier(0.5, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

/* ── Base ──────────────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--navy);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

main {
  flex: 1;
}

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

picture {
  display: contents;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--cream);
  text-decoration: underline;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

h1,
h2,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

em {
  font-style: italic;
  font-weight: 400;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.tnum {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link: off-screen until focused. */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: var(--navy);
  text-decoration: none;
}

/* ── Buttons (pills) ───────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.btn--gold:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--navy);
}

.btn--cream {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--navy);
}

.btn--cream:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.btn--outline {
  background: transparent;
  border-color: var(--cream-70);
  color: var(--cream);
}

.btn--outline:hover {
  border-color: var(--cream);
  color: var(--cream);
}

.btn--navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}

.btn--navy:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

/* ── Header ────────────────────────────────────────────────────────── */

.site-header {
  position: relative;
  z-index: 30;
  background: var(--navy);
  border-bottom: 1px solid var(--gold-45);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: calc(var(--header-h) - 1px);
}

.site-header__logo {
  display: block;
  flex: none;
}

.site-header__logo img {
  width: 84px;
  height: 84px;
}

.site-header__cta {
  min-height: 46px;
  padding: 0 24px;
}

/* ── Hero ──────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  min-height: 540px;
  overflow: hidden;
  background: var(--navy);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(0 35 63 / 0.25) 0%,
    rgb(0 35 63 / 0) 25%,
    rgb(0 35 63 / 0) 50%,
    rgb(0 35 63 / 0.85) 100%
  );
}

.hero__strip {
  position: absolute;
  top: clamp(16px, 3vw, 28px);
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-84);
}

.hero__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(28px, 5vw, 40px);
}

.hero h1 {
  max-width: 1150px;
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-wrap: balance;
}

.hero h1 em {
  color: var(--gold);
}

.hero__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.hero__lede {
  max-width: 440px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cream-92);
  text-wrap: pretty;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Fastigheter ───────────────────────────────────────────────────── */

.props {
  padding-top: clamp(64px, 10vw, 112px);
  padding-bottom: clamp(32px, 5vw, 48px);
}

.props__title {
  display: block;
  margin-bottom: clamp(32px, 5vw, 48px);
  font-size: 11px;
  color: var(--gold);
}

.props__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(48px, 6vw, 64px);
}

.prop::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  margin-bottom: clamp(20px, 2.6vw, 28px);
  background: var(--gold);
}

.prop h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.2vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.prop .prop__addr {
  margin-bottom: 20px;
  font-size: 10.5px;
  color: var(--cream-76);
}

.prop p {
  max-width: 480px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--cream-86);
}

.prop dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 8px clamp(24px, 4vw, 48px);
  margin: 28px 0 0;
}

.prop dt {
  grid-row: 2;
  font-size: 10px;
  color: var(--cream-76);
}

.prop dd {
  grid-row: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
}

/* ── Kontakt ───────────────────────────────────────────────────────── */

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(32px, 6vw, 64px);
  padding-top: clamp(72px, 11vw, 112px);
  padding-bottom: clamp(72px, 11vw, 112px);
}

/* Target of every "#kontakt" link. tabindex="-1" in the markup moves focus
   here on navigation, so keyboard users continue from Kontakt; the section
   itself is not a control, so it draws no focus ring. */
.contact {
  scroll-margin-top: 24px;
}

.contact:focus {
  outline: none;
}

.contact__eyebrow {
  display: block;
  margin-bottom: 28px;
  font-size: 11px;
  color: var(--gold);
}

.contact h2 {
  margin: 0 0 clamp(28px, 5vw, 48px);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 10vw, 160px);
  line-height: 0.88;
  letter-spacing: -0.02em;
}

.contact h2 em {
  color: var(--gold);
}

.contact__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
  padding-top: 28px;
  border-top: 1px solid var(--gold-40);
  font-size: 15px;
  line-height: 1.65;
  color: var(--cream-86);
}

.contact__info h3 {
  display: block;
  margin: 0 0 8px;
  font-size: 10px;
  line-height: inherit;
  color: var(--gold);
}

.contact__info p {
  margin: 0;
}

.contact__map {
  display: inline-block;
  margin-top: 6px;
}

.contact__actions {
  display: grid;
  gap: 12px;
  align-content: start;
  padding-top: 8px;
}

.btn--big {
  width: 100%;
  min-height: 72px;
  font-size: 12px;
}

/* ── Footer ────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--gold-40);
}

.site-footer__main {
  padding-top: clamp(40px, 7vw, 64px);
  padding-bottom: clamp(28px, 5vw, 40px);
}

.site-footer__brand {
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.site-footer__address {
  font-size: 13.5px;
  line-height: 1.65;
  font-style: normal;
  color: var(--cream-76);
}

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-60);
}

.site-footer__admin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 24px;
  padding: 0 20px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.site-footer__admin:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ── 404 ───────────────────────────────────────────────────────────── */

.notfound {
  padding-top: clamp(72px, 11vw, 112px);
  padding-bottom: clamp(72px, 11vw, 112px);
}

.notfound h1 {
  margin: 0 0 clamp(28px, 5vw, 48px);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 10vw, 160px);
  line-height: 0.88;
  letter-spacing: -0.02em;
}

.notfound h1 em {
  color: var(--gold);
}

.notfound p {
  max-width: 440px;
  margin-bottom: 32px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cream-92);
}

/* ── Mobile (< 860 px), the design's single breakpoint ─────────────── */

@media (max-width: 859px) {
  .site-header__inner {
    height: 67px;
  }

  .site-header__logo img {
    width: 52px;
    height: 52px;
  }

  .site-header__cta {
    min-height: 44px;
    padding: 0 20px;
    font-size: 10.5px;
  }
}

/* Coarse pointers: grow the hit area of the short inline links without
   moving the layout (vertical padding on an inline box does not affect
   line boxes). */
@media (pointer: coarse) {
  .contact__info a,
  .site-footer a {
    padding-block: 11px;
  }

  .site-footer a.site-footer__admin {
    padding-block: 0;
  }
}

/* ── Motion (off when the user asks for less motion) ───────────────── */

@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition:
      background-color 0.2s,
      border-color 0.2s,
      color 0.2s;
  }

  html {
    scroll-behavior: smooth;
  }
}

.nowrap {
  white-space: nowrap;
}
