/* Aasen Kommunikasjon – landingsside
   Samme stil som AasenGaare / Kunstagenda */

/* Self-hosted IBM Plex Mono (kun nødvendige vekter) */
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f5f0;
  --paper: #fdfcf8;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --border: #2a2a2a;
  --footer: #666;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 1.5rem 1rem 3rem;
  font-family: "IBM Plex Mono", "Courier New", Courier, monospace;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1 {
  font-family: "IBM Plex Mono", "Courier New", Courier, monospace;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.85rem;
  margin: 2rem 0 1.25rem;
  text-align: center;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.4rem;
  display: inline-block;
  max-width: 100%;
}

.intro {
  max-width: 32rem;
  width: 100%;
  margin: 0 auto 2.5rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
  text-align: center;
  padding: 0 0.5rem;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  width: 100%;
  max-width: 68rem;
  margin-bottom: 3rem;
  padding: 0 0.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 2px solid var(--border);
  padding: 1.75rem 1.5rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  width: 100%;
  max-width: 20rem;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.08);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.card:hover,
.card:focus {
  background: var(--text);
  color: var(--paper);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.12);
  transform: translate(-1px, -1px);
}

.card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.35rem;
}

.card:hover h2,
.card:focus h2 {
  border-bottom-color: #666;
}

.card-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 1.25rem;
  flex-grow: 1;
  color: inherit;
}

.card-link {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  opacity: 0.75;
  margin-top: auto;
  word-break: break-all;
}

.card:hover .card-link,
.card:focus .card-link {
  opacity: 1;
}

.proff-link {
  text-align: center;
  margin: 0 0 2.5rem;
  font-size: 0.85rem;
  padding: 0 0.5rem;
}

.proff-link a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid #999;
  transition: color 0.15s, border-color 0.15s;
}

.proff-link a:hover,
.proff-link a:focus {
  color: var(--text);
  border-bottom-color: var(--text);
}

footer {
  margin-top: auto;
  padding: 1.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--footer);
  text-align: center;
  width: 100%;
  max-width: 42rem;
  border-top: 1px solid #ccc;
  letter-spacing: 0.03em;
}

/* Tablets / smale desktop – stack kort tidligere */
@media (max-width: 720px) {
  .cards {
    flex-direction: column;
    align-items: stretch;
    max-width: 22rem;
    gap: 1.1rem;
  }

  .card {
    max-width: 100%;
  }
}

/* Ekte mobil */
@media (max-width: 480px) {
  body {
    padding: 1rem 0.75rem 2rem;
  }

  h1 {
    font-size: 1.4rem;
    margin: 1.25rem 0 1rem;
  }

  .intro {
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
  }

  .cards {
    max-width: 100%;
    padding: 0;
  }

  .card {
    padding: 1.35rem 1.15rem 1.25rem;
  }

  .card h2 {
    font-size: 1.15rem;
  }

  .card-desc {
    font-size: 0.88rem;
  }

  .card-link {
    font-size: 0.72rem;
  }
}
