/* ===== Variables / Base ===== */
:root {
  --paper: #ffffff;
  --ink: #141414;
  --rule: #d8d2c7;
  --blue: #1f1e1c;
  --brand-blue: #1f1e1c;
  --brand-blue-hover: #0f0f0f;
  --journal-font: Corpid, CorpidOffice, "Nunito Sans", "Fira Sans", "Frutiger LT 55 Roman", "Frutiger CE 55 Roman", "Humanist 777", "Lucida Grande", "Lucida Sans Unicode", "Trebuchet MS", Helvetica, sans-serif;
  --reading-measure: 60ch;
  --muted: rgba(31, 30, 28, 0.65);
  --btn: #1f1e1c;
  --btn-hover: #0f0f0f;
  --card-border: rgba(0, 0, 0, 0.16);
  --card-shadow:
    0 0 0 5px rgba(0, 0, 0, 0.04),
    0 12px 34px rgba(0, 0, 0, 0.06);
  --focus-ring: 0 0 0 4px rgba(0, 0, 0, 0.25);
  --radius: 10px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--journal-font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
}

.wrapper {
  max-width: 500px;
  margin: clamp(2rem, 6vh, 4rem) auto;
  padding: 0 1.25rem;
}

/* ===== Cards ===== */
.card,
.footer-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 3px;
  box-shadow: 5px 10px 14px rgba(0,0,0,0.30);
}

/* main card spacing */
.card {
  padding: 3rem 2.5rem;
}

.back-home {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  margin: 0;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--journal-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 3px 6px 10px rgba(0,0,0,0.24);
  transition: background 160ms ease, border-color 160ms ease;
}

.back-home:hover {
  background: #0f0f0f;
  border-color: #0f0f0f;
}

.back-home:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.page-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 2px dotted var(--brand-blue);
}

/* footer card spacing */
.footer-card {
  padding: 0rem 2rem;
  text-align: center;
  max-width: 520px;
}

.footer-card p {
  margin: 0.5rem 0;
  text-align: center;
}

/* ===== Typography ===== */
.site-title,
.sub {
  font-family: var(--journal-font);
  font-variant-caps: small-caps;
  color: var(--ink);
  text-align: center;
  font-weight: 600;
      letter-spacing: 0.2em;
}

.site-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.2rem, 4.8vw, 2.1rem);
  letter-spacing: 0.18em;
  max-width: 100%;
  text-wrap: balance;
}

.home-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(0.8rem, 2.1vw, 1.4rem);
  margin-bottom: 0.3rem;
  font-size: clamp(1.9rem, 6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 800;
  font-variant-caps: normal;
  text-align: left;
  text-transform: lowercase;
  white-space: normal;
}

.home-name {
  display: inline-block;
}

.home-tagline {
  display: block;
  margin: 0 0 2.5rem;
  font-size: clamp(0.86rem, 1.9vw, 1.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 650;
  text-align: left;
  text-transform: lowercase;
  max-width: none;
}

.sub {
  margin: 0 0 2rem;
  letter-spacing: 0.4em;
}

.muted-note {
  font-size: 0.95rem;
  color: #666;
  text-align: center;
}

p {
  margin: 0 0 1.25rem;
  text-align: justify;
  text-justify: inter-word;
  max-width: var(--reading-measure);
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: auto 5 5;
}

p:last-child {
  margin-bottom: 0;
}

li + li {
  margin-top: 0.35rem;
}

/* ===== Rules ===== */
.rule {
  display: block;
  width: 100%;
  border: 0;
  margin: 0;
}

.blue-rule {
  border-top: 3px solid var(--brand-blue);
  margin: 2rem 0;
}

.dotted-blue-rule {
  border-top: 2px dotted var(--brand-blue);
  margin: 1.25rem 0;
}

hr,
.blue-rule {
  display: block;
  width: 100%;
  height: 0;
  margin: 1.25rem 0;
  border: 0;
  border-top: 3px solid var(--brand-blue);
}

.section-break {
  margin: 4rem 0;
  border: 0;
  border-top: 4px solid var(--brand-blue);
}

/* ===== Buttons ===== */

.button,
.btn,
.coverage-button,
a.button,
button.button {

  
    display: block;
  width: fit-content;
  margin: 1.5rem auto;
  display: block;
  align-items: center;
  justify-content: center;

  padding: 0.7rem 1.25rem;

  background: var(--brand-blue);
  color: #ffffff;
  font-family: var(--journal-font);
  font-weight: 700;

  border: 1px solid var(--brand-blue);
  border-radius: 6px;
  font-size: small;

  text-decoration: none;
  cursor: pointer;

  box-shadow: none;
  transition: background 0.15s ease;
}

.button:hover,
.btn:hover,
.coverage-button:hover,
a.button:hover,
button.button:hover {

  background: var(--brand-blue-hover);
  border-color: var(--brand-blue-hover);
}

.button:focus-visible,
.btn:focus-visible,
.coverage-button:focus-visible,
a.button:focus-visible,
button.button:focus-visible {

  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.button:active,
.btn:active,
.coverage-button:active,
a.button:active,
button.button:active {

  transform: none;
}
/* ===== Profile Image ===== */
.profile-figure {
  margin: 0;
  text-align: center;
}

.profile-photo {
  display: block;
  width: 420px;
  max-width: 100%;
  margin: 1rem auto;
}

.profile-card {
  padding-bottom: 1rem;
  box-shadow: none;
}

.photo-caption-card {
  max-width: 340px;
  margin: 0 auto 1.5rem auto;
  padding: 0.6rem 0.9rem;
  text-align: center;
}

.photo-caption-card p {
  margin: 0.15rem 0;
  font-size: 0.95rem;
  color: #666;
  text-align: center;
}

.photo-caption-card p:last-child {
  margin-bottom: 0;
}
/* ===== Link-tree blocks ===== */
.link-block {
  display: block;
  width: 100%;
  padding: 1rem;
  margin-bottom: 0.75rem;
  text-align: center;
  font-family: var(--journal-font);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 3px;
  box-shadow: 5px 10px 14px rgba(0, 0, 0, 0.30);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.link-block:hover {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.link-block:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ===== Footer ===== */
.site-footer {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  text-align: center;
  color: #666;
  font-size: 0.95rem;
}

.site-footer .footer-card {
  padding: 1.05rem 2rem 1.15rem;
}

.site-footer .footer-card::before {
  content: "\2042";
  display: block;
  margin-bottom: 0.55rem;
  font-size: 1rem;
  line-height: 1;
  color: #5f5f5f;
}

@media (min-width: 900px) {
  .wrapper {
    max-width: 560px;
  }

  .card {
    padding: 3.1rem 2.8rem;
  }
}

@media (max-width: 560px) {
  .card {
    padding: 2.2rem 1.3rem;
  }

  .home-title {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-size: clamp(1.75rem, 10vw, 2.35rem);
    text-align: center;
  }

  .home-tagline {
    font-size: clamp(0.82rem, 4.8vw, 1.05rem);
  }
}