/* ==========================================================================
   Personal comedy site
   Two pages, one stylesheet. No web fonts, no scripts, no external assets.

   Palette and type are drawn from the headshot: warm paper, charcoal ink,
   brick rust used sparingly, one square of sand for the skip link.
   Serif for everything; mono is reserved for the skip link.
   ========================================================================== */

:root {
  --paper: #faf9f7;
  --ink: #2c2523;
  --muted: #6b625d;
  --rust: #a54f3e;
  --sand: #e8dcd1;
  --rule: rgba(44, 37, 35, 0.12);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono",
    monospace;

  --gutter: clamp(1.5rem, 6vw, 4.5rem);
  --page: 58rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-kerning: normal;
}

h1,
h2,
p,
figure,
ol {
  margin: 0;
  padding: 0;
}

ol {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

::selection {
  background: var(--rust);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -6rem;
  left: var(--gutter);
  z-index: 10;
  padding: 0.85rem 1.1rem;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8125rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* --------------------------------------------------------------------------
   Header — the page's only rule
   -------------------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: clamp(1.5rem, 4vw, 2.5rem) 1rem;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-block: 0.5rem;
  text-decoration: none;
}

.wordmark__name {
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.wordmark__role {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.wordmark:hover .wordmark__name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.25rem);
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 1.0625rem;
  text-decoration: none;
}

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

.site-nav__link[aria-current="page"] {
  color: var(--ink);
}

/* The dot marks the current page but must not widen the link: the nav is
   right-aligned, so an inline mark would nudge the labels sideways as the
   reader moves between pages. It rides in the gutter instead. */
.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 3px;
  height: 3px;
  margin-left: 0.5rem;
  transform: translateY(-50%);
  background: var(--rust);
}

/* --------------------------------------------------------------------------
   Page frame
   -------------------------------------------------------------------------- */

.main {
  padding-block: clamp(2.5rem, 7vw, 5rem) 0;
}

.page-title {
  text-wrap: balance;
  font-size: clamp(2.125rem, 1.4rem + 2.6vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

/* --------------------------------------------------------------------------
   Shows — a list, stacked, no grid
   -------------------------------------------------------------------------- */

.shows {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  max-width: 40rem;
}

.show + .show {
  margin-top: clamp(1.75rem, 4.5vw, 3rem);
}

/* The date leads each entry: it is the reader's first question, so it is
   the largest and heaviest line. Venue name second, address last; the two
   share one size and weight. */
.show__date {
  color: var(--ink);
  font-size: 1.4375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-wrap: balance;
}

.show__venue,
.show__address {
  margin-top: 0.35rem;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
}

.show__tickets {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-decoration-color: var(--rust);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.show__tickets:hover {
  color: var(--rust);
  text-decoration-thickness: 2px;
}

.shows__empty {
  max-width: 34ch;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.portrait {
  max-width: 20rem;
  margin-top: clamp(2.75rem, 7vw, 4.5rem);
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.prose {
  max-width: 60ch;
  margin-top: clamp(3rem, 8vw, 5rem);
}

.prose p + p {
  margin-top: 1.6rem;
}

.prose p {
  text-wrap: pretty;
}

.prose a {
  text-decoration: underline;
  text-decoration-color: var(--rust);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.prose a:hover {
  color: var(--rust);
  text-decoration-thickness: 2px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem);
  color: var(--muted);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Wider screens — the list steps in slightly; nothing else moves.
   -------------------------------------------------------------------------- */

@media (min-width: 52rem) {
  .shows {
    padding-left: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  a,
  .wordmark__name {
    transition:
      color 180ms ease,
      text-decoration-color 180ms ease;
  }

  .skip-link {
    transition: top 180ms ease;
  }
}
