/* Studio pages (press kit, notes). They borrow the landing page's paper, ink and lights from home.css. */

.studio main { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.top-nav a[aria-current="page"]::after { transform: scaleX(1); }

.s-hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2rem, 5vw, 3.5rem); max-width: 50rem; }
.s-kicker { font: italic 500 1.25rem/1 "Fraunces", serif; color: var(--accent); }
.s-title { font: 600 clamp(3rem, 9vw, 7rem)/.95 "Fraunces", serif; font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -.04em; margin: .6rem 0 1.2rem; }
.s-lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--soft); max-width: 36rem; }

/* Download buttons */
.zip {
  display: inline-flex; align-items: baseline; gap: .7rem; margin-top: 1.2rem; padding: .85rem 1.3rem; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none;
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.zip small { font-weight: 500; opacity: .7; font-size: 13px; }
.zip:hover { transform: translateY(-2px) rotate(-1deg); }
.zip-big { margin-top: 2rem; font-size: 1.05rem; padding: 1rem 1.5rem; }

/* The studio, on an index card */
.pk-studio { padding: 1rem 0 clamp(3rem, 6vw, 5rem); }
.index-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2.5rem; align-items: center;
  max-width: 820px; padding: 2.2rem 2.4rem 2.4rem; color: #2b1d16; rotate: -.8deg;
  background: repeating-linear-gradient(transparent 0 35px, rgba(76, 139, 128, .2) 35px 36px) 0 76px / 100% calc(100% - 76px) no-repeat,
    linear-gradient(transparent 74px, rgba(229, 138, 114, .6) 74px 76px, transparent 76px), #fffaf1;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 24px 44px -26px rgba(43, 29, 22, .55);
}
.ic-title { grid-column: 1 / -1; font: 700 2.3rem/40px "Caveat", cursive; color: #a0643a; margin-bottom: 4px; }
.ic-facts { margin: 0; line-height: 36px; }
.ic-facts div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; }
.ic-facts dt { color: #8a7465; font-size: 15px; }
.ic-facts dd { margin: 0; font-weight: 600; }
.ic-facts a { color: #a0643a; }
.ic-mark { display: grid; justify-items: center; gap: .6rem; text-align: center; font-size: 13px; }
.ic-mark img { width: 120px; border-radius: 28px; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .45); rotate: 4deg; transition: rotate .4s cubic-bezier(.3, 1.6, .5, 1); }
.ic-mark:hover img { rotate: -3deg; }
.ic-mark a { color: #6d5a4d; }

/* Each app */
.pk-apps { display: grid; gap: clamp(1.4rem, 3vw, 2rem); }
.pk-app {
  --tint: #22183f; --tint-ink: #ffe2a6;
  display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 3rem);
  padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: 30px; border: 2px solid var(--rule);
}
.pk-sipwell { --tint: #cfe9e4; --tint-ink: #123a33; }
.pk-sprout { --tint: #d3f64a; --tint-ink: #151518; }
.pk-side { display: grid; align-content: start; gap: .9rem; }
.pk-icon { width: 96px; border-radius: 22px; box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .5); }
.pk-name { font-size: 2rem; line-height: 1; }
.pk-bento .pk-name { font-family: "Fredoka", sans-serif; font-weight: 600; }
.pk-sipwell .pk-name { font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: -.05em; }
.pk-sprout .pk-name { font-family: "Google Sans", sans-serif; font-weight: 700; letter-spacing: -.04em; }
.pk-facts { margin: 0; font-size: 15px; }
.pk-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.pk-facts dt { color: var(--soft); }
.pk-facts dd { margin: 0; font-weight: 600; text-align: right; }
.pk-page { font-weight: 700; color: var(--accent); text-decoration: none; }
.pk-page:hover { text-decoration: underline; text-underline-offset: 4px; }
.pk-main { display: grid; gap: 1rem; align-content: start; }

.blurb { padding: 1.1rem 1.3rem 1.2rem; border-radius: 20px; background: var(--tint); color: var(--tint-ink); }
.blurb-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .9; margin-bottom: .4rem; }
.blurb p { font-size: 1.05rem; line-height: 1.55; }
.blurb .copy { border-color: currentColor; color: inherit; padding: .3rem .8rem; font-size: 13px; letter-spacing: 0; text-transform: none; }
.blurb .copy:hover { background: var(--tint-ink); color: var(--tint); }

.pk-shots { display: flex; gap: .8rem; overflow-x: auto; padding: .3rem 0 .6rem; scrollbar-width: thin; }
.pk-shots img { width: 150px; flex: none; border-radius: 18px; box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .5); }

.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .5rem; }
.files a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: .8rem; align-items: center;
  padding: .7rem .9rem; border-radius: 14px; border: 1.5px solid color-mix(in srgb, var(--ink) 18%, transparent); text-decoration: none;
  transition: border-color .2s, background .2s, transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.files a:hover { border-color: var(--ink); transform: translateY(-2px); }
.f-name { font-weight: 700; font-size: 15px; }
.f-meta { grid-row: 2; font-size: 13px; color: var(--soft); }
.files svg { grid-row: 1 / 3; grid-column: 2; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.files a:hover svg { animation: nudge .6s ease-in-out; }
@keyframes nudge { 50% { transform: translateY(3px); } }
.pk-main .zip { justify-self: start; margin-top: .3rem; }

.pk-rules { padding: clamp(3rem, 7vw, 6rem) 0; }
.pk-rules ul { margin-top: 1.2rem; display: grid; gap: .6rem; font-size: 1.1rem; max-width: 40rem; }
.pk-rules li { padding-left: 1.6rem; position: relative; }
.pk-rules li::before { content: ""; position: absolute; left: 0; top: .6em; width: .7rem; height: .7rem; border-radius: 50%; border: 2px solid var(--accent); }
.pk-rules a { color: var(--accent); }

/* Notes list */
.n-list { padding-bottom: clamp(4rem, 8vw, 7rem); }
.n-list ol { border-top: 2px solid var(--rule); }
.n-list li { border-bottom: 2px solid var(--rule); }
.n-item {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 2rem;
  padding: clamp(1.4rem, 3vw, 2.2rem) .4rem; text-decoration: none; transition: background .3s, padding .4s cubic-bezier(.2, .8, .2, 1);
}
.n-item:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); padding-left: 1.2rem; }
.n-item time { grid-row: 1 / 3; padding-top: .5rem; color: var(--accent); font: italic 500 1.05rem/1.3 "Fraunces", serif; }
.n-title { font: 600 clamp(1.8rem, 4vw, 3rem)/1.05 "Fraunces", serif; font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -.02em; }
.n-sum { color: var(--soft); margin-top: .4rem; }

/* A single note */
.n-post { max-width: 42rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem); }
.n-back { display: inline-flex; gap: .4rem; font-weight: 700; text-decoration: none; color: var(--soft); }
.n-back:hover { color: var(--ink); }
.n-date { display: block; margin-top: 2.2rem; color: var(--accent); font: italic 500 1.1rem/1 "Fraunces", serif; }
.n-h1 { font: 600 clamp(2.6rem, 7vw, 4.6rem)/1 "Fraunces", serif; font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -.03em; margin: .7rem 0 2rem; }
.n-body { font-size: 1.15rem; line-height: 1.75; }
.n-body p { margin: 0 0 1.2rem; }
.n-body h2 { font: 600 1.6rem/1.2 "Fraunces", serif; margin: 2.4rem 0 .7rem; }
.n-body a { color: var(--accent); text-underline-offset: 3px; }
.n-body ul { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.n-sign { font: 600 1.8rem/1 "Caveat", cursive; color: var(--accent); margin-top: 2rem; }
.n-more { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 2px solid var(--rule); }
.n-more a { display: grid; gap: .2rem; text-decoration: none; font-weight: 700; }
.n-more a.older { text-align: right; }
.n-more small { color: var(--soft); font-weight: 500; }
.n-more a:hover { color: var(--accent); }

@media (max-width: 800px) {
  .index-card { grid-template-columns: minmax(0, 1fr); padding: 2rem 1.4rem; }
  .ic-facts div { grid-template-columns: minmax(0, 1fr); gap: 0; line-height: 1.4; padding: .5rem 0; }
  .index-card { background: #fffaf1; }
  .ic-mark { justify-items: start; text-align: left; }
  .pk-app { grid-template-columns: minmax(0, 1fr); }
  .n-item { grid-template-columns: minmax(0, 1fr); }
  .n-item time { grid-row: auto; padding: 0 0 .4rem; }
}
