/* Cade Rasmussen: one stylesheet for every page. Plain CSS, no build step.
   The shirts and prints colors match the Pinterest pins. */

/* Fonts are self-hosted (SIL Open Font License), so the site loads nothing from other servers. */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f3ec;
  --paper-2: #efe8dc;
  --card: #ffffff;
  --ink: #1b2130;
  --ink-2: #2b3245;
  --muted: #5b6170;
  --line: #e4dccd;
  --gold: #d29b2a;

  --shirts: #4a6248;
  --shirts-soft: #e6ece2;
  --prints: #962828;
  --prints-soft: #f5e7e2;
  --piano: #1f3352;
  --quotes: #8a6420;
  --game: #5d3a7e;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(27, 33, 48, .06), 0 8px 24px rgba(27, 33, 48, .08);
  --shadow-lg: 0 2px 4px rgba(27, 33, 48, .06), 0 18px 40px rgba(27, 33, 48, .14);
  --accent: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 84px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 .5em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-weight: 580; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 900px) { .wrap { padding: 0 40px; } }

.kicker {
  display: inline-block;
  font: 600 .78rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 36em; }

/* Buttons: 48px tall so they are easy to tap. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: #fff;
  font: 600 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(27, 33, 48, .18); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.arrow::after { content: "\2192"; display: inline-block; transition: transform .15s ease; }
a:hover .arrow::after, a.arrow:hover::after { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 243, 236, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.2rem/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 1.15rem/1 var(--serif); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; font-weight: 500; font-size: .96rem; color: var(--ink-2); padding: 10px 12px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav { margin-left: auto; }
.header-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--piano); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.header-cta:hover { background: #172741; }
@media (max-width: 760px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0 12px; padding-top: 10px; padding-bottom: 4px; min-height: 0; }
  .brand { min-height: 44px; flex: 1; }
  .header-cta { min-height: 40px; padding: 0 16px; font-size: .9rem; }
  .nav { order: 3; width: calc(100% + 48px); margin: 4px -24px 0; padding: 0 24px 4px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 10px 14px; font-size: .95rem; }
  .nav a:first-child { padding-left: 0; }
}
@media (max-width: 480px) {
  .actions .btn { flex: 1 1 100%; }
}

/* Home hero */
.hero { padding: 48px 0 32px; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 88px 0 72px; } .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--shirts); }

.collage { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: start; }
.collage img { border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; width: 100%; }
.collage .c-main { grid-row: 1 / 3; aspect-ratio: 4 / 5; }
.collage .c-side { aspect-ratio: 1 / 1; }
.collage .c-paper { background: #fff; padding: 8px; border-radius: 10px; box-shadow: var(--shadow-lg); transform: rotate(2.5deg); margin: 4px 6px 0 4px; }
.collage .c-paper img { border-radius: 3px; box-shadow: none; }

.trust { display: flex; flex-wrap: wrap; gap: 18px 32px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.trust div { display: flex; flex-direction: column; gap: 4px; }
.trust strong { font: 600 1.3rem/1.1 var(--serif); white-space: nowrap; }
.trust .stars { color: var(--gold); font-size: .9rem; margin-left: 6px; letter-spacing: .04em; }
.trust span { font-size: .9rem; color: var(--muted); }

.stars { color: var(--gold); letter-spacing: .08em; }

/* Generic sections */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 36px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 30em; }

/* Shop feature cards on the home page */
.shops { display: grid; gap: 24px; }
@media (min-width: 820px) { .shops { grid-template-columns: 1fr 1fr; gap: 28px; } }
.shop-card { display: flex; flex-direction: column; background: var(--card); border-radius: 24px; overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.shop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.shop-card .media { aspect-ratio: 16 / 11; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.shop-card .media img { width: 100%; height: 100%; object-fit: cover; }
.shop-card .media.paper { background: var(--prints-soft); padding: 28px 24px 0; gap: 16px; align-items: end; }
.shop-card .media.paper img { height: auto; max-height: 100%; object-fit: contain; object-position: bottom; border-radius: 6px 6px 0 0; box-shadow: var(--shadow); background: #fff; }
.shop-card .body { padding: 28px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.shop-card .body p { color: var(--muted); margin-bottom: 20px; }
.shop-card .go { margin-top: auto; font-weight: 600; color: var(--accent); display: inline-flex; gap: .4em; }
.label { font: 600 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }

/* Piano band */
.piano { background: var(--piano); color: #fff; position: relative; overflow: hidden; padding-top: 112px; }
@media (min-width: 900px) { .piano { padding-top: 136px; } }
.piano::before {
  /* A row of piano keys along the top edge: white keys 40px wide, black keys in groups of two and three. */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 56px;
  background-image:
    linear-gradient(90deg, transparent 28px, #0e1727 28px 52px, transparent 52px 68px, #0e1727 68px 92px, transparent 92px 148px, #0e1727 148px 172px, transparent 172px 188px, #0e1727 188px 212px, transparent 212px 228px, #0e1727 228px 252px, transparent 252px),
    linear-gradient(90deg, #f6f2ea 39px, #c9c1b2 39px);
  background-size: 280px 34px, 40px 56px;
  background-repeat: repeat-x;
  box-shadow: inset 0 4px 0 #0e1727, inset 0 -4px 0 rgba(0, 0, 0, .3);
}
.piano .kicker { color: #c9d6ea; }
.piano h2 { color: #fff; }
.piano .lede { color: #d5deeb; }
.piano-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .piano-grid { grid-template-columns: 1.5fr 1fr; gap: 64px; } }
.contact-check { margin-top: 20px; min-height: 0; }
button.btn { cursor: pointer; }
.btn:disabled { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
.contact-note { margin: 20px 0 0; color: #c9d6ea; font-size: .98rem; }
.contact-note a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .4); overflow-wrap: anywhere; }
.contact-note a:hover { border-color: #fff; }
.rating-card { display: grid; justify-items: start; gap: 6px; padding: 32px 34px; border-radius: 24px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); text-decoration: none; color: #fff; transition: background .2s ease; }
.rating-card:hover { background: rgba(255, 255, 255, .12); }
.rating-card .score { font: 600 4.2rem/1 var(--serif); }
.rating-card .stars { font-size: 1.5rem; }
.rating-card .count { color: #d5deeb; }
.rating-card .more { margin-top: 12px; font-weight: 600; display: inline-flex; gap: .4em; }

.reviews { display: grid; gap: 18px; margin-top: 48px; }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; } }
.review { margin: 0; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 26px 26px 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); display: flex; flex-direction: column; }
.review blockquote { margin: 12px 0 20px; font-size: 1rem; line-height: 1.62; }
.review figcaption { margin-top: auto; font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.review .avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e5ebf4; color: var(--piano); font-weight: 700; font-size: .85rem; }
.review figcaption b { color: var(--ink); font-weight: 600; }

/* More of my work */
.projects { display: grid; gap: 24px; }
@media (min-width: 820px) { .projects { grid-template-columns: 1fr 1fr; gap: 28px; } }
.project { display: flex; flex-direction: column; background: var(--card); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.project .media { display: block; aspect-ratio: 40 / 21; overflow: hidden; background: #1d1b2e; }
.project .media img { width: 100%; height: 100%; object-fit: cover; }
.project .body { padding: 28px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.project .body p { color: var(--muted); }
.project .actions { margin-top: auto; padding-top: 4px; }
.soon { display: inline-flex; align-items: center; margin-top: auto; font-weight: 600; color: var(--game); background: #efe7f5; border-radius: 999px; padding: 10px 18px; align-self: flex-start; font-size: .95rem; }

/* Shop pages */
.shop-hero { background: var(--accent-soft, var(--paper-2)); padding: 40px 0 56px; overflow: hidden; }
@media (min-width: 900px) { .shop-hero { padding: 64px 0 88px; } }
.shop-hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .shop-hero .wrap { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.crumb { display: flex; width: fit-content; align-items: center; gap: 6px; font-size: .92rem; color: var(--muted); text-decoration: none; margin-bottom: 22px; min-height: 40px; }
.crumb:hover { color: var(--ink); }
.logo { width: 72px; height: 72px; border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 22px; }
.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.points li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); }
.points li::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.hero-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.hero-pair img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.hero-pair img:last-child { margin-top: 48px; }
.hero-pair.paper img { aspect-ratio: auto; object-fit: contain; background: #fff; padding: 8px; border-radius: 10px; }
.hero-pair.paper img:first-child { transform: rotate(-2deg); }
.hero-pair.paper img:last-child { transform: rotate(2deg); }

.group { padding: 64px 0 8px; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.group-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
.group-head p { margin: 0; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr 1fr; gap: 14px; } }
.item { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.item .pic { aspect-ratio: 1 / 1; background: #f4f1ec; display: grid; place-items: center; overflow: hidden; }
.item .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.item:hover .pic img { transform: scale(1.03); }
.theme-prints .item .pic { background: #f2ede9; }
.theme-prints .item .pic img { object-fit: contain; }
.item .pic.page { position: relative; --inset: 22px; }
.item .pic.page img { position: absolute; inset: var(--inset); width: calc(100% - 2 * var(--inset)); height: calc(100% - 2 * var(--inset)); object-fit: contain; filter: drop-shadow(0 4px 10px rgba(27, 33, 48, .16)); }
.item .meta { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.item h3 { font-size: 1.12rem; margin-bottom: 6px; }
.item p { font-size: .95rem; line-height: 1.55; color: var(--muted); margin-bottom: 14px; }
.item .go { margin-top: auto; font-weight: 600; font-size: .95rem; color: var(--accent); display: inline-flex; gap: .4em; }
@media (max-width: 560px) {
  .item .meta { padding: 14px 14px 16px; }
  .item h3 { font-size: 1rem; }
  .item p { display: none; }
  .item .go { font-size: .9rem; }
  .item .pic.page { --inset: 12px; }
}
.note { color: var(--muted); font-size: .95rem; max-width: 46em; margin-top: 28px; }

.cta-band { background: var(--accent); color: #fff; border-radius: 28px; padding: 40px 28px; display: grid; gap: 24px; align-items: center; margin: 64px 0 88px; }
@media (min-width: 820px) { .cta-band { grid-template-columns: 1fr auto; padding: 56px 64px; } }
.cta-band h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .82); }
.cta-band .actions { margin: 0; }

/* Themes */
.theme-shirts { --accent: var(--shirts); --accent-soft: var(--shirts-soft); }
.theme-prints { --accent: var(--prints); --accent-soft: var(--prints-soft); }
.t-shirts { --accent: var(--shirts); }
.t-prints { --accent: var(--prints); }
.t-piano { --accent: var(--piano); }
.t-quotes { --accent: var(--quotes); }
.t-game { --accent: var(--game); }

/* Footer */
.site-footer { background: var(--ink); color: #c7ccd6; padding: 64px 0 32px; font-size: .96rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 36px 24px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; } }
.footer-grid .about { grid-column: 1 / -1; max-width: 26em; }
@media (min-width: 900px) { .footer-grid .about { grid-column: auto; } }
.footer-grid h4 { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #8d95a6; margin: 6px 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-grid li a { display: inline-block; padding: 7px 0; }
.footer-grid .brand { color: #fff; margin-bottom: 16px; }
.footer-grid .brand-mark { background: #fff; color: var(--ink); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid #2f3647; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: #8d95a6; font-size: .88rem; }

/* 404 */
.notfound { min-height: 62vh; display: grid; align-content: center; padding-top: 80px; padding-bottom: 80px; }
