:root {
  --paper: #f5f2ec;
  --ink: #1d1b18;
  --muted: #6b655c;
  --rule: #d9d3c8;
  --card: #fbf9f5;
  --accent: #2f4a3a;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151412;
    --ink: #ece7de;
    --muted: #a39c90;
    --rule: #34312c;
  --card: #1d1b18;
    --accent: #9fc2ab;
  }
}

*, *::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.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  min-height: 100vh;
  min-height: 100svh;
}

.portrait {
  margin: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
}

.portrait picture { display: contents; }

/* MacCormick Dress tartan seam, echoing the business card */
.portrait::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 20px;
  background: url(/images/tartan-maccormick-dress.png) 0 0 / 48px 48px repeat;
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
}

.content {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem clamp(1.5rem, 6vw, 6rem);
}

.lang {
  position: absolute;
  top: 1.5rem;
  right: clamp(1.5rem, 6vw, 6rem);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.lang a { text-decoration: none; padding: 0.25rem; }
.lang a:hover { color: var(--ink); }
.lang [aria-current] { color: var(--ink); }

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 34rem;
  padding: 2rem 0;
}

.kicker {
  margin: 0 0 1.25rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker span { white-space: nowrap; }

h1 {
  margin: 0 0 1.5rem;
  font-weight: 400;
  font-size: clamp(2.5rem, 4.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

h1 span { display: block; font-style: italic; }

.intro { line-height: 1.6; }
.intro p { margin: 0 0 0.75em; }
.intro p:last-child { margin-bottom: 0; }
.intro a { text-decoration-color: var(--rule); text-underline-offset: 0.2em; }
.intro a:hover { text-decoration-color: currentColor; }

.links svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bio { margin-top: 2rem; border-top: 1px solid var(--rule); }

.bio summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 0 0.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.bio summary::-webkit-details-marker { display: none; }
.bio summary::after { content: "+"; font-size: 1.1rem; letter-spacing: 0; line-height: 1; }
.bio[open] summary::after { content: "\2212"; }
.bio summary:hover { color: var(--ink); }
.bio summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.bio p { margin: 0.9rem 0 0; }

.band-label {
  margin: 2rem 0 0.75rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Scottish Frogs link preview, using the scottishfrogs.com share image */
.band {
  display: block;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: var(--card);
  text-decoration: none;
  box-shadow: 0 10px 30px -14px rgba(11, 19, 43, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.band img {
  display: block;
  width: 100%;
  height: auto;
}

.band-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.1rem;
}

.band-title { font-size: 1.05rem; }

.band-url {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.band-url::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.5em;
  transition: transform 0.2s ease;
}

.band:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(11, 19, 43, 0.5); }
.band:hover .band-url { color: var(--ink); }
.band:hover .band-url::after { transform: translateX(0.3em); }


.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.connect {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 1.5rem 3.5rem;
  margin-top: 2rem;
}

.connect .band-label { margin-top: 0; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

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

.link svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

footer {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 800px) {
  body { font-size: 1.0625rem; }
  .page { display: block; }
  .portrait { position: relative; height: auto; }
  .portrait::after { top: auto; left: 0; width: auto; height: 20px; }
  .content { position: static; }
  .portrait img { height: 45svh; min-height: 18rem; object-position: 60% 22%; }
  .content { padding: 1.5rem 1rem 2rem; }
  .lang { position: absolute; top: 1rem; right: 1rem; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
  .lang [aria-current], .lang a:hover { color: #fff; font-weight: 500; }
  main { padding: 1.5rem 0 3rem; }
  .connect { grid-template-columns: 1fr; }
  h1 { margin-bottom: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .band, .band-url::after { transition: none; }
  .band:hover { transform: none; }
}
