/* Picklestudio homepage. Plain CSS, no build step, no dependencies. */

:root {
  --ink: #23201c;
  --muted: #6b6355;
  --paper: #f6f1e7;
  --card: #fffdf7;
  --line: #e6dcc9;
  --accent: #35658a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}

.brand-mark {
  border-radius: 28%;
  display: block;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Main */
/* Vertical padding must be set on main.wrap: the .wrap class also declares
   padding, and a bare main rule loses to it, which left the page with no
   top or bottom spacing at all. */
main.wrap { padding-top: 32px; padding-bottom: 80px; }

/* This page has no h1 of its own, so the first heading must not add its own top
   margin on top of the padding above. */
main.wrap > :first-child { margin-top: 0; }

h1 {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 12px;
}

h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 48px 0 20px;
}

.app-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.app {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.app img {
  border-radius: 24%;
  flex: 0 0 auto;
}

.app-body { min-width: 0; }

.app h3 {
  margin: 0 0 4px;
  font-size: 19px;
}

.app p {
  margin: 0;
  color: var(--muted);
}

.app .links {
  margin-top: 10px;
}

a {
  color: var(--accent);
}

a:hover { text-decoration: none; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  background: var(--card);
}

.site-footer p { margin: 0 0 4px; }

.muted { color: var(--muted); font-size: 15px; }

/* Legal pages reuse this sheet with a narrower measure */
.legal { max-width: 680px; }
.legal h1 { font-size: 26px; }
.legal h2 {
  font-size: 19px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  margin: 32px 0 8px;
}
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 15px; margin-bottom: 32px; }

@media (max-width: 480px) {
  h1 { font-size: 25px; }
  main.wrap { padding-top: 28px; padding-bottom: 64px; }
  h2 { margin: 36px 0 16px; }
  .wrap { padding: 0 18px; }
  .app { padding: 16px; gap: 14px; }
}

/* Tablets and up: a wider measure, roomier cards, and a larger title. */
@media (min-width: 760px) {
  .wrap { max-width: 840px; padding: 0 32px; }
  main.wrap { padding-top: 44px; padding-bottom: 104px; }
  h1 { font-size: 36px; }
  h2 { margin: 56px 0 24px; }
  .app-list { gap: 20px; }
  .app { padding: 26px 28px; gap: 20px; }
  .app h3 { font-size: 21px; }
  .site-footer { padding: 40px 0 64px; }
}

/* Legal pages keep a narrower measure than the homepage on every screen. */
@media (min-width: 760px) {
  .wrap.legal { max-width: 720px; }
}
