/* etkaahmet.com - personal site of Etka Ahmet Bulut.
   One bold element: the header is the sky over Niğde at this moment (assets/sky.js).
   Everything else is a quiet single column. */

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  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: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Registered so the sky can change colour smoothly when the minute ticks over. */
@property --sky-top {
  syntax: "<color>";
  inherits: true;
  initial-value: #5c8ccb;
}

@property --sky-bottom {
  syntax: "<color>";
  inherits: true;
  initial-value: #cfe3f5;
}

:root {
  --paper: #f4f6f8;
  --ink: #172030;
  --muted: #576274;
  --link: #1e4fa3;
  --gutter: clamp(16px, 6vw, 6rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e141e;
    --ink: #e4e9f0;
    --muted: #9aa6b7;
    --link: #93b6ff;
  }
}

*,
*::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: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  font-stretch: 100%;
  font-weight: 420;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--paper);
  color: var(--ink);
}

/* The sky */

.sky {
  --sky-ink: #172030;
  --sky-ink-top: #172030;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: max(30rem, 78svh);
  padding: 1.25rem var(--gutter) clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
  color: var(--sky-ink);
  transition: --sky-top 2s linear, --sky-bottom 2s linear;
}

.sky a {
  color: inherit;
}

.sky-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  color: var(--sky-ink-top);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.sky-top p {
  margin: 0;
}

.lang {
  display: flex;
  gap: 0.875rem;
}

.lang a {
  text-decoration: none;
}

.lang a[aria-current="page"] {
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.sky h1 {
  margin: 0;
  font-size: clamp(3.25rem, 14vw, 10rem);
  font-stretch: 75%;
  font-weight: 640;
  letter-spacing: -0.015em;
  line-height: 0.88;
}

.lede {
  max-width: 30ch;
  margin: 1.25rem 0 0;
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  font-weight: 450;
  line-height: 1.35;
}

/* The page */

main {
  padding: 0 var(--gutter) 3rem;
}

.sky-note {
  max-width: 40rem;
  margin: 0;
  padding-top: 0.875rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

section {
  max-width: 40rem;
  margin-top: 3.5rem;
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  font-weight: 650;
}

p {
  margin: 0 0 1rem;
}

.log {
  margin: 0;
  padding: 0;
  list-style: none;
}

.log li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.125rem 1.5rem;
  margin-bottom: 1.75rem;
}

.log time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.log h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 650;
}

.log p {
  margin: 0.25rem 0 0;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

footer {
  padding: 2rem var(--gutter) 3rem;
  color: var(--muted);
  font-size: 0.875rem;
}

footer p {
  margin: 0;
}

@media (max-width: 34rem) {
  .log li {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sky {
    transition: none;
  }
}
