/* huntermartinson.com — light, minimal */

@font-face {
  font-family: "Ivar Text";
  src: url("assets/ivar/IvarText-Regular.otf") format("opentype");
  font-weight: 400;
}

@font-face {
  font-family: "Ivar Text";
  src: url("assets/ivar/IvarText-Medium.otf") format("opentype");
  font-weight: 500;
}

@font-face {
  font-family: "Ivar Text";
  src: url("assets/ivar/IvarText-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
}

:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --dim: #6f6f6f;
  --faint: #a3a3a3;
  --line: #ececec;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --serif: "Ivar Text", Georgia, serif;
}

@supports (font-variation-settings: normal) {
  :root {
    --sans: "InterVariable", -apple-system, "Segoe UI", sans-serif;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--faint);
  text-underline-offset: 2px;
}

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

h1 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 1px;
}

.tagline {
  color: var(--dim);
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 12px;
  padding-top: 4px;
}

.contact a {
  color: #2563eb;
  text-decoration: none;
}

.contact a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

@media (max-width: 560px) {
  .head {
    flex-direction: column;
  }

  .contact {
    align-items: flex-start;
  }
}

section {
  margin-bottom: 28px;
}

h2 {
  font-size: 12px;
  font-weight: 400;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}

p {
  color: var(--dim);
  margin-bottom: 10px;
}

p strong {
  color: #2563eb;
  font-weight: 500;
}

.item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 5px 0;
}

.item .what {
  color: var(--ink);
}

.icon {
  width: 15px;
  height: 15px;
  color: var(--dim);
  margin-right: 9px;
  vertical-align: -2px;
}

.item .note {
  color: var(--faint);
  font-size: 13px;
  white-space: nowrap;
}

h2.lower {
  text-transform: none;
  letter-spacing: normal;
}

.year {
  display: inline-block;
  font-size: 11px;
  color: var(--dim);
  border-radius: 99px;
  padding: 1px 8px;
  margin-right: 8px;
  background: linear-gradient(180deg, rgba(255, 233, 146, .8), rgba(224, 158, 18, .5));
  border: 1px solid rgba(214, 158, 23, .5);
  color: rgba(104, 87, 5, .9);
}

.redacted {
  filter: blur(4px);
  user-select: none;
}

footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}

footer a {
  color: var(--dim);
}

/* blog post */
article h1 {
  font-size: 19px;
}

article .meta {
  color: var(--faint);
  font-size: 11px;
  margin-bottom: 20px;
}

article .body p {
  color: #3d3d3d;
  margin-bottom: 12px;
}

article .body h2 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin: 20px 0 5px;
}

.back {
  display: inline-block;
  color: var(--faint);
  font-size: 11px;
  margin-bottom: 28px;
  text-decoration: none;
}

.back:hover {
  color: var(--ink);
}