/* Lierne — lierne.io · one screen
   Stone ground, washi type, the symbol as a plate. One accent: urushi, on the mail link. */

:root {
  --stone:  #0E0C0D;
  --came:   #2C2621;
  --nezumi: #7B736A;
  --washi:  #E7DECB;
  --urushi:      #A47B3B;
  --urushi-core: #DBA94E;

  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
  --f-mono: 'Commit Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-var.woff2') format('woff2-variations'), url('fonts/fraunces-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/plexsans-var.woff2') format('woff2-variations'), url('fonts/plexsans-var.woff2') format('woff2');
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: 'Commit Mono';
  src: url('fonts/commitmono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Commit Mono';
  src: url('fonts/commitmono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; }
body {
  background: var(--stone);
  color: var(--washi);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
}
/* stone, not flat black */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 60;
  pointer-events: none; opacity: .035;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.55'/></svg>");
}
::selection { background: var(--washi); color: var(--stone); }
:focus-visible { outline: 2px solid var(--urushi-core); outline-offset: 3px; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 32px; }

.page {
  min-height: 100svh;
  display: flex; flex-direction: column;
}

.wm {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 40, 'SOFT' 0, 'WONK' 0, 'wght' 520;
  font-size: 1.02rem; letter-spacing: .17em;
  padding-top: 34px;
}

.grid {
  flex: 1;
  display: grid;
  grid-template-columns: 11fr 9fr;
  gap: 6vw;
  align-items: center;
  padding-block: 40px;
}

h1 {
  font-family: var(--f-display);
  font-weight: 500;
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0, 'wght' 580;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 17em;
}

.reach { margin-top: 44px; }
.note {
  font-family: var(--f-body);
  font-size: .9rem; line-height: 1.5;
  color: var(--nezumi);
  margin-top: 14px;
}
.mail {
  font-family: var(--f-mono); font-size: 1.02rem; letter-spacing: .05em;
  color: var(--washi); text-decoration: none;
  border-bottom: 1px solid var(--came); padding-bottom: 3px;
  transition: color .25s ease, border-color .25s ease;
}
.mail:hover { color: var(--urushi-core); border-color: var(--urushi); }

.plate { max-width: 460px; justify-self: end; width: 100%; }
.plate img { display: block; width: 100%; height: auto; }

.colophon {
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em;
  color: var(--nezumi);
  padding-block: 26px 30px;
}

@media (max-width: 840px) {
  .wrap { padding-inline: 20px; }
  .grid { grid-template-columns: 1fr; gap: 40px; align-content: center; }
  .plate { order: -1; max-width: min(76vw, 380px); justify-self: center; }
  h1 { font-size: clamp(1.7rem, 6.4vw, 2.2rem); }
}
