/* ---------------------------------------------------------
   artinsoheili.com
   One stylesheet. Every page links to this file.
   Edit here to change the look of the entire site.
   --------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --page:        #fbfaf7;
  --panel:       #f2f0ea;
  --rule:        #ddd9d0;
  --ink:         #1e2126;
  --ink-dim:     #5f6670;
  --signal:      #94560a;
  --signal-soft: #f6ead6;

  --display: 'Space Grotesk', system-ui, sans-serif;
  --body:    'Newsreader', Georgia, serif;

  --measure: 36rem;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.18rem;
  line-height: 1.74;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

/* --- skip link -------------------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--page);
  padding: 0.7rem 1.1rem;
  font-family: var(--display);
  font-size: 0.8rem;
  z-index: 20;
}

.skip:focus { left: 1rem; top: 1rem; }

/* --- masthead --------------------------------------------- */

.masthead {
  padding: 3.5rem 0 0;
  margin-bottom: 2rem;
}

.identity {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.portrait {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--rule);
}

.masthead__name {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.masthead__name a { color: inherit; text-decoration: none; }
.masthead__name a:hover { color: var(--signal); }

.masthead__beat {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-dim);
  margin: 0.3rem 0 0;
}

/* --- tabs ------------------------------------------------- */

.tabs {
  display: flex;
  gap: 0.4rem;
  margin: 2.2rem 0 3rem;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}

.tabs a {
  font-family: var(--display);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-dim);
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  border-radius: 4px 4px 0 0;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.tabs a:hover {
  color: var(--ink);
  background: var(--panel);
}

.tabs a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--signal);
  font-weight: 700;
}

/* --- index listing ---------------------------------------- */

.section-label {
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 1.2rem;
}

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

.entry {
  padding: 1.7rem 0;
  border-top: 1px solid var(--rule);
}

.entry:last-child { border-bottom: 1px solid var(--rule); }

.entry__meta {
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.entry__no {
  color: var(--signal);
  background: var(--signal-soft);
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  font-weight: 700;
}

.entry__title {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.02em;
  margin: 0 0 0.45rem;
}

.entry__title a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--signal), var(--signal));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .26s ease;
}

.entry__title a:hover,
.entry__title a:focus-visible { background-size: 100% 2px; }

.entry__standfirst {
  margin: 0;
  color: var(--ink-dim);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* --- article ---------------------------------------------- */

.article__meta {
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 1rem;
}

.article__no {
  color: var(--signal);
  background: var(--signal-soft);
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  font-weight: 700;
}

.article__title {
  font-family: var(--display);
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
}

.article__standfirst {
  font-size: 1.24rem;
  line-height: 1.55;
  color: var(--ink-dim);
  margin: 0 0 2.2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--rule);
}

.article p { margin: 0 0 1.45rem; }

.article h2 {
  font-family: var(--display);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 2.8rem 0 1rem;
}

.article blockquote {
  margin: 2rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 3px solid var(--signal);
  font-style: italic;
  color: var(--ink-dim);
}

.article a {
  color: var(--ink);
  text-decoration-color: var(--signal);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.article a:hover { color: var(--signal); }

/* --- about page ------------------------------------------- */

.about h1 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1.4rem;
}

.about p { margin: 0 0 1.4rem; }

.contact-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--rule);
}

.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.55rem 0;
  font-size: 1.04rem;
}

.contact-list span {
  font-family: var(--display);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  min-width: 5.5rem;
}

.contact-list a {
  color: var(--ink);
  text-decoration-color: var(--signal);
  text-underline-offset: 3px;
}

.contact-list a:hover { color: var(--signal); }

/* --- notes ------------------------------------------------ */

.notes {
  margin-top: 3rem;
  padding: 1.5rem 1.5rem 1.2rem;
  background: var(--panel);
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-dim);
}

.notes h2 {
  font-family: var(--display);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 0.8rem;
}

.notes ol { padding-left: 1.1rem; margin: 0; }
.notes li { margin-bottom: 0.5rem; }

/* --- footer ----------------------------------------------- */

.footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 0.8rem;
  color: var(--ink-dim);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.footer a { color: var(--ink-dim); text-decoration: none; }
.footer a:hover, .footer a:focus-visible { color: var(--signal); }

.footer__links { display: flex; gap: 1.3rem; flex-wrap: wrap; }

/* --- responsive & a11y ------------------------------------ */

@media (max-width: 34rem) {
  body { font-size: 1.1rem; }
  .masthead { padding-top: 2.5rem; }
  .article__title { font-size: 1.75rem; }
  .about h1 { font-size: 1.6rem; }
  .entry__title { font-size: 1.22rem; }
  .portrait { width: 56px; height: 56px; }
  .tabs { gap: 0.15rem; }
  .tabs a { padding: 0.5rem 0.7rem; font-size: 0.82rem; }
  .footer { flex-direction: column; gap: 0.9rem; }
  .contact-list li { flex-direction: column; gap: 0.15rem; }
}

a:focus-visible, :focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
