@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Caveat:wght@500;600&display=swap");

:root {
  --bg: #b8ac99; /* the wall colour in library/photo/room.jpg */
  --ink: #1e211a;
  --accent: #435a2b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.site {
  max-width: 900px;
  margin: 0 auto;
  /* side padding grows/shrinks with the viewport for mobile friendliness */
  padding: clamp(2rem, 6vw, 3rem) clamp(1.15rem, 5vw, 2rem) 4rem;
}

/* page content */
.page-title {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.prose {
  /* fill the content column and reflow with the screen instead of
     wrapping at a fixed character count */
  max-width: 100%;
  font-size: 1.05rem;
}

.prose p {
  margin-bottom: 1.1rem;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* things i like: simple bullet list */
.like-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 2;
  font-size: 1.05rem;
}

.like-list a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.like-list a:hover {
  border-bottom-color: var(--accent);
}

/* board: pinterest-style masonry — equal-width columns that pack
   vertically, so the top of one card meets the bottom of the one above. */
.board {
  column-count: 3;
  column-gap: 1rem;
}

.card {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: 1rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(45, 55, 30, 0.12);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* linked card: whole card is clickable */
.card--link {
  text-decoration: none;
  color: inherit;
  position: relative;
  display: block;
}

.card--link:hover h3 {
  color: var(--accent);
}

.card-arrow {
  position: absolute;
  top: 0.7rem;
  right: 0.85rem;
  font-size: 0.9rem;
  color: var(--accent);
}

/* expandable card: opens a modal with more info */
.card--expand {
  position: relative;
  display: block;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-transform: lowercase;
  text-align: left;
  color: inherit;
}

.card--expand:hover h3 {
  color: var(--accent);
}

.card-plus {
  position: absolute;
  top: 0.55rem;
  right: 0.8rem;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--accent);
}

/* text card: title + text, hugs the width of its longest line */
.card--text {
  padding: 1.1rem 1.2rem;
}

.card--link.card--text h3,
.card--expand.card--text h3 {
  padding-right: 1rem;
}

.card--text h3 {
  margin-bottom: 0.4rem;
}

.card--text p {
  font-size: 0.92rem;
  color: rgba(0, 0, 0, 0.75);
}

.card--text:has(p) {
  margin-bottom: 0;
}

.card--text h3:only-child {
  margin-bottom: 0;
}

/* image card: the image sets the width, title sits underneath */
.card--image {
  padding: 0;
}

.card--image img {
  display: block;
  width: 100%;
  height: auto;
}

.card--image h3 {
  padding: 0.85rem 1.1rem 1.05rem;
}

/* 3d tilt card (see the pointermove handler in things-i-like.html) */
.card--3d {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}

.card--3d:hover {
  box-shadow: 0 18px 40px rgba(45, 55, 30, 0.25);
}

/* generic pop-up modal (things i like) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 10;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 1.6rem 1.7rem 1.8rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  max-height: 85vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  border: none;
  background: none;
  color: rgba(0, 0, 0, 0.45);
  font-family: inherit;
  font-size: 0.8rem;
  text-transform: lowercase;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--accent);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}

.modal-body {
  font-size: 0.98rem;
  color: rgba(0, 0, 0, 0.78);
}

.modal-body p {
  margin-bottom: 0.9rem;
}

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

/* placeholder page */
.placeholder {
  border: 1.5px dashed var(--accent);
  border-radius: 14px;
  padding: 2.5rem;
  text-align: center;
  color: var(--accent);
  font-size: 1.05rem;
  max-width: 60ch;
}

/* footer */
.footer {
  margin-top: 4rem;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 720px) {
  .board {
    column-count: 2;
  }
}

@media (max-width: 460px) {
  .board {
    column-count: 1;
  }
  .page-title {
    font-size: 1.8rem;
  }
}

/* the cursor is a small moss-green dot everywhere (text fields keep the typing caret) */
:root { --dot: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'><circle cx='11' cy='11' r='10' fill='%23435a2b'/></svg>") 11 11, auto; }
*, *::before, *::after { cursor: var(--dot) !important; }
input[type="search"], input[type="text"], input[type="email"], textarea { cursor: text !important; }
