/* Anne-Marie Morrell — minimal portfolio
   Calm, photography-like whitespace, subtle grays only */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Spectral:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Spectral", Georgia, "Times New Roman", Times, serif;
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --border: #e6e6e6;
  --border-hover: #cfcfcf;
  --surface-hover: #f3f3f3;
  --placeholder: #f2f2f2;
  /* Homepage tiles — Pantone-inspired (TCX approximations) */
  /* 12-0311 Asparagus Green */
  --oval-1: #d2cdb4;
  --oval-1-hover: #c5c0a6;
  /* 18-5806 Agave Green */
  --oval-2: #6b7169;
  --oval-2-hover: #5e635c;
  /* 15-1506 Etherea */
  --oval-3: #a5958f;
  --oval-3-hover: #958985;
  --max-content: 42.5rem; /* ~680px */
  --max-wide: 64rem;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.75;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-decoration-color: #999;
}

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

/* ——— Layout ——— */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
}

.site-header {
  max-width: var(--max-wide);
  width: 100%;
  margin: 0 auto 2.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.site-title {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

a.site-name {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 0;
  color: inherit;
  text-decoration: none;
}

a.site-name:hover {
  text-decoration: none;
  color: var(--muted);
}

/* ——— Nav ——— */

nav.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1.65rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

nav.site-nav a {
  text-decoration: none;
  font-weight: 400;
}

nav.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

nav.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 500;
  box-shadow: inset 0 -1px 0 currentColor;
}

/* ——— Main ——— */

main {
  flex: 1;
  max-width: var(--max-wide);
  width: 100%;
  margin: 0 auto;
}

.page--home .site-header {
  margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
}

/* ——— Footer ——— */

.site-footer {
  max-width: var(--max-wide);
  width: 100%;
  margin: clamp(3.5rem, 8vw, 5.5rem) auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Homepage: horizontal oval gallery ——— */

.home {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.home-work {
  margin: 0;
  padding: 0;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: flex-start;
}

.oval-gallery {
  display: grid;
  grid-template-columns: minmax(0, 26rem);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  padding: 0;
}

.oval-piece {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.25rem);
  text-decoration: none;
  color: inherit;
  outline: none;
}

.oval-piece:hover {
  text-decoration: none;
}

.oval-piece:hover .oval-caption {
  color: var(--text);
}

.oval-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  max-width: 18rem;
}

.oval-desc {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  color: var(--muted);
}

.oval-shape {
  display: block;
  width: 100%;
  max-width: 26rem;
  aspect-ratio: 2.35 / 1;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.2s ease;
}

.oval-shape--1 {
  background: var(--oval-1);
}

.oval-shape--2 {
  background: var(--oval-2);
}

.oval-shape--3 {
  background: var(--oval-3);
}

.oval-piece:hover .oval-shape--3 {
  background: var(--oval-3-hover);
  border-color: var(--border-hover);
}

.oval-piece--accent .oval-shape--1 {
  background: var(--oval-1);
}

@media (prefers-reduced-motion: no-preference) {
  .oval-piece:hover .oval-shape--3 {
    transform: scale(1.012);
  }
}

.oval-caption {
  font-family: var(--font-serif);
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--text);
  transition: color 0.16s ease;
}

.oval-piece:focus-visible .oval-shape {
  outline: 2px solid #999;
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .oval-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .oval-shape {
    aspect-ratio: 2.1 / 1;
  }

  .oval-caption {
    font-size: 0.8125rem;
  }
}


.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-link {
  display: flex;
  flex-direction: column;
  min-height: 11rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  background: #fff;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.card-link:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.card-link:focus {
  outline: 2px solid #bbb;
  outline-offset: 2px;
}

.card-link:focus:not(:focus-visible) {
  outline: none;
}

.card-link:focus-visible {
  outline: 2px solid #999;
  outline-offset: 2px;
}

.card-title {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 auto;
  padding-bottom: 0.75rem;
}

.card-subtitle {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

/* ——— Inner pages ——— */

.page-title {
  font-size: clamp(1.35rem, 2.1vw, 1.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

.back-link {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
  text-decoration: none;
}

.back-link:hover {
  color: var(--text);
  text-decoration: none;
  opacity: 0.7;
}

.back-link:focus-visible {
  outline: 2px solid #999;
  outline-offset: 3px;
}

nav.site-nav a:focus-visible,
.text-link:focus-visible {
  outline: 2px solid #999;
  outline-offset: 3px;
}

.reading {
  max-width: var(--max-content);
}

.about-page {
  font-family: var(--font-serif);
}

.reading p {
  margin: 0 0 1.25rem;
  color: var(--text);
}

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

/* ——— Case studies ——— */

body:has(.case-study) {
  font-family: var(--font-serif);
}

body:has(.case-study) .site-header {
  font-family: var(--font-sans);
}

.case-study {
  max-width: var(--max-content);
  margin: 0 auto;
  padding-bottom: 7.5rem;
}

.case-study .page-title {
  font-weight: 500;
}

.case-study-meta {
  margin: -0.75rem 0 1.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.case-study-outcome {
  margin: -0.35rem 0 1.75rem;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.case-study-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  list-style: none;
  margin: -0.5rem 0 1.65rem;
  padding: 0;
}

.case-study-tags li {
  list-style: none;
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.case-study-tags li::marker {
  content: none;
}

.subtitle {
  margin: -0.75rem 0 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.reading h3 {
  font-size: 1.03rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 2.1rem 0 0.75rem;
  padding-top: 0;
}

.case-study h3 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin: 3rem 0 1rem;
  padding-top: 0;
  color: var(--text);
  border-top: none;
}

.case-study h3:first-of-type {
  margin-top: 2.25rem;
}

.reading h3 + p,
.case-study h3 + p {
  margin-top: 0;
}

.reading h3:not(:first-of-type) {
  border-top: 1px solid var(--border);
  padding-top: 1.35rem;
}

.case-study p {
  margin: 0 0 1.25rem;
  color: var(--text);
  font-weight: 400;
}

.case-study p strong {
  font-weight: 600;
}

.case-study p:last-child {
  margin-bottom: 0;
}

.case-study blockquote {
  margin: 1.5rem 0 1.75rem 1.25rem;
  padding: 0.35rem 0 0.35rem 1.5rem;
  border-left: 3px solid var(--text);
  font-weight: 400;
  color: var(--text);
}

.case-study blockquote p {
  margin: 0 0 0.85rem;
}

.case-study blockquote p strong {
  font-weight: 700;
}

.case-study blockquote p:last-child {
  margin-bottom: 0;
}

.case-study blockquote li {
  margin: 0 0 0.4rem;
  font-weight: 400;
}

.case-study blockquote li:last-child {
  margin-bottom: 0;
}

.case-study ul:not(.case-study-tags) {
  margin: 0 0 1.25rem;
  padding: 0 0 0 1.25rem;
  list-style: disc;
  color: var(--text);
}

.case-study ul:not(.case-study-tags) li {
  margin: 0 0 0.45rem;
  font-weight: 400;
}

.case-study ul:not(.case-study-tags) li:last-child {
  margin-bottom: 0;
}

.case-study blockquote ul {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.case-study h3 + blockquote {
  margin-top: 0;
}

.case-study p + ul:not(.case-study-tags) {
  margin-top: -0.5rem;
}

