/* Digmond — temporary landing page */

:root {
  --paper: #f4f2ee;
  --ink: #141413;
  --muted: #6b6963;
  --rule: #d6d3cc;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --font: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  color-scheme: only light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p,
ul,
h1 {
  margin: 0;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* Layout */

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--gutter);
  max-width: 90rem;
  margin: 0 auto;
}

/* Masthead */

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ink);
}

.wordmark {
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.22em;
  text-decoration: none;
}

.meta,
.label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Intro */

.intro {
  align-self: center;
  padding: clamp(4.5rem, 14vh, 10rem) 0;
}

.headline {
  font-weight: 500;
  font-size: clamp(2.625rem, 9vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 12ch;
  text-wrap: balance;
}

.lede {
  margin-top: clamp(1.75rem, 4vw, 3rem);
  max-width: 34ch;
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
}

/* Colophon */

.colophon {
  display: grid;
  gap: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.colophon__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1.75rem;
}

.links a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 0.15s ease;
}

.links a:hover {
  text-decoration-color: var(--ink);
}

/* SVG arrow instead of the ↗ character, which iOS renders as an emoji.
   It overlaps the trailing spaces so the link underline still runs beneath it. */
.links .arrow svg {
  width: 0.5625em;
  height: 0.5625em;
  margin: 0 -0.6875em 0 0.125em;
  vertical-align: baseline;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

/* Wider screens */

@media (min-width: 48rem) {
  .colophon {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--gutter);
  }

  .colophon__item:last-child {
    grid-column: 3;
  }
}

@media (max-width: 26rem) {
  .meta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
