@font-face {
  font-family: "Bree Serif";
  src: url("/fonts/bree-serif.regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #271308;
  --bg: #cec0b4;
  --bg-line: #c1b2a6;
  --wood-light: #d08a44;
  --wood-mid: #9d5a2b;
  --wood-dark: #6b3a1f;
  --leaf: #2f9a58;
  --leaf-dark: #1d6a3d;
  --leaf-highlight-1: #4dbf79;
  --leaf-highlight-2: #35a963;
  --icon-paper-1: #e8bf9f;
  --icon-paper-2: #d3a27f;
  --icon-paper-3: #b78666;
  --surface-border: #5a3219;
  --surface-border-strong: #6a3c21;
  --surface-shadow: rgba(58, 28, 12, 0.2);
  --surface-shadow-soft: rgba(58, 28, 12, 0.22);
  --surface-rim: rgba(249, 233, 193, 0.42);
  --surface-pattern:
    radial-gradient(circle at 18% 17%, rgba(255, 239, 220, 0.36), rgba(255, 239, 220, 0) 38%),
    radial-gradient(circle at 76% 70%, rgba(122, 80, 54, 0.2), rgba(122, 80, 54, 0) 42%),
    repeating-linear-gradient(90deg,
      rgba(122, 80, 54, 0.08) 0,
      rgba(122, 80, 54, 0.08) 2px,
      rgba(255, 243, 226, 0.05) 2px,
      rgba(255, 243, 226, 0.05) 11px),
    repeating-linear-gradient(84deg,
      rgba(154, 106, 73, 0.11) 0,
      rgba(154, 106, 73, 0.11) 1px,
      rgba(255, 255, 255, 0) 1px,
      rgba(255, 255, 255, 0) 7px),
    repeating-radial-gradient(circle at 0 0,
      rgba(122, 80, 54, 0.08) 0 1px,
      rgba(255, 255, 255, 0) 1px 7px),
    linear-gradient(180deg, var(--icon-paper-1), var(--icon-paper-2) 58%, var(--icon-paper-3));
  --surface-pattern-size: auto, auto, auto, auto, 11px 11px, auto;
  --surface-rod-bg:
    linear-gradient(90deg, #8f6136 0 26%, #c28c52 26% 74%, #7a4f2d 74%),
    repeating-linear-gradient(180deg,
      rgba(61, 34, 16, 0.18) 0,
      rgba(61, 34, 16, 0.18) 6px,
      rgba(223, 177, 114, 0.05) 6px,
      rgba(223, 177, 114, 0.05) 13px);
  --surface-rod-shadow: rgba(56, 28, 12, 0.28);
  --app-icon-bg: linear-gradient(180deg, #ead7bd, #d8bea0);
  --app-icon-shadow: rgba(66, 34, 16, 0.2);
  --text-link: #3f2312;
  --text-muted: #4a2a16;
  --sticky-heading: #2a1408;
  --sticky-body: #371b0a;
  --nav-link-border: rgba(58, 22, 7, 0.78);
  --nav-link-text: #f9e3c3;
  --nav-link-bg: rgba(65, 23, 6, 0.3);
  --nav-link-active-text: #271308;
  --nav-link-active-bg: #f4cd96;
  --nav-link-active-border: #603116;
  --log-cap-bg:
    radial-gradient(ellipse at 50% 50%, #d99a55 0 16%, #b6733d 16% 35%, #cd8850 35% 56%, #8d4f2a 56% 75%, #5c301a 75%);
  --panel-bg: rgba(255, 246, 232, 0.24);
  --panel-border: var(--surface-border);
  --content-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
  --content-shadow-soft: 0 1px 0 rgba(0, 0, 0, 0.5);
  --selection-bg: #f4cd96;
  --selection-text: #271308;
  --image-max-height: 80vh;
  --page-bg-pattern:
    repeating-linear-gradient(180deg,
      var(--bg) 0,
      var(--bg) 14px,
      var(--bg-line) 14px,
      var(--bg-line) 15px);
}

@supports (height: 1svh) {
  :root {
    --image-max-height: 80svh;
  }
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--bg);
}

body {
  margin: 0;
  padding: 1rem;
  font-family: "Bree Serif", serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image: var(--page-bg-pattern);
  background-position: 0 0;
  background-origin: border-box;
  text-shadow: var(--content-shadow);
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-text);
  text-shadow: none;
}

::-moz-selection {
  background: var(--selection-bg);
  color: var(--selection-text);
  text-shadow: none;
}

.scroll {
  position: relative;
  padding: 1.45rem 2.1rem 1.35rem;
  border: 3px solid var(--surface-border);
  border-radius: 10px;
  background: var(--surface-pattern);
  background-size: var(--surface-pattern-size);
  box-shadow: inset 0 0 0 1px var(--surface-rim), 0 8px 0 var(--surface-shadow-soft);
  z-index: 2;
  width: min(1020px, 100%);
  margin: 1.2rem auto;
}

.scroll::before,
.scroll::after,
.sticky-text::before,
.sticky-text::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 12px;
  border: 2px solid var(--surface-border);
  border-radius: 8px;
  background: var(--surface-rod-bg);
}

.scroll::before,
.sticky-text::before {
  left: -9px;
  box-shadow: -3px 4px 0 var(--surface-rod-shadow);
}

.scroll::after,
.sticky-text::after{
  right: -9px;
  box-shadow: 3px 4px 0 var(--surface-rod-shadow);
}

h1 {
  margin: 0;
  font-family: "Bree Serif", serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.05;
  text-align: center;
}

.scroll > h1 + .content-grid {
  margin-top: 2rem;
}

.app-icon {
  margin: 0 auto 0.5rem;
  width: 112px;
  height: 112px;
  border: 3px solid var(--surface-border);
  border-radius: 28%;
  background: var(--app-icon-bg);
  box-shadow: 0 3px 0 var(--app-icon-shadow);
}

.app-icon img {
  width: 100%;
  height: 100%;
  display: block;
  text-align: center;
  object-fit: cover;
}

.intro {
  margin: 0.65rem 0 0.85rem;
  text-align: center;
  font-size: 1.07rem;
  line-height: 1.35;
}

.scroll-cta {
  margin: 0.2rem 0 0;
  text-align: center;
}

a {
  color: var(--text-link);
}

a:hover,
a:focus-visible {
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.app-store-btn {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.9rem;
  border: 2px solid var(--nav-link-border);
  border-radius: 999px;
  font-family: "Bree Serif", serif;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--nav-link-active-text);
  background: var(--nav-link-active-bg);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.22);
  text-shadow: none;
}

img {
  text-align: center;
  color: var(--sticky-body);
  font-size: 0.86rem;
  line-height: 1.3;
}

.screenshot-frame {
  width: auto;
  max-width: 100%;
  max-height: var(--image-max-height);
  height: auto;
  display: block;
  text-align: center;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

li {
  margin: 0.28rem 0;
  line-height: 1.3;
  font-size: 1rem;
}

.feature-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
  gap: 1.1rem 1rem;
  justify-items: center;
}

.feature-notes article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem;
  justify-items: center;
  align-items: center;
  width: fit-content;
  max-width: 100%;
}

.feature-note-wide {
  grid-column: 1 / -1;
  width: 100%;
}

.feature-notes article figure {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  line-height: 0;
  margin: 0;
}

.feature-notes article figure .screenshot-frame {
  border: 4px solid var(--surface-border-strong);
  border-radius: 34px;
  background: var(--app-icon-bg);
  box-shadow: 0 6px 0 var(--app-icon-shadow);
  margin-inline: auto;
}

.sticky-text {
  margin: 0;
  margin-top: -36px;
  width: calc(100% - 20px);
  max-width: calc(100% - 20px);
  padding: 0.72rem 1rem;
  border: 2px solid var(--surface-border);
  border-radius: 10px;
  background: var(--surface-pattern);
  background-size: var(--surface-pattern-size);
  box-shadow: inset 0 0 0 1px var(--surface-rim), 0 6px 0 var(--surface-shadow);
  position: relative;
  z-index: 3;
}

.feature-notes article:nth-child(1) .sticky-text {
  transform: rotate(3deg);
}

.feature-notes article:nth-child(2) .sticky-text {
  transform: rotate(-3.6deg);
}

.feature-notes article:nth-child(3) .sticky-text {
  transform: rotate(2.2deg);
}

.feature-notes article:nth-child(4) .sticky-text {
  transform: rotate(-2.5deg);
}

.feature-notes article:nth-child(5) .sticky-text {
  transform: rotate(3.8deg);
}

.feature-notes article:nth-child(6) .sticky-text {
  transform: rotate(-2.8deg);
}

.feature-notes article:nth-child(7) .sticky-text {
  transform: rotate(2.6deg);
}

.feature-notes article:nth-child(8) .sticky-text {
  transform: rotate(-3.1deg);
}

.sticky-text h3 {
  margin: 0;
  font-family: "Bree Serif", serif;
  font-size: 1rem;
  color: var(--sticky-heading);
}

.sticky-text p {
  margin: 0.3rem 0 0;
  font-size: 0.96rem;
  line-height: 1.3;
  color: var(--sticky-body);
}

.icon-style-box {
  position: relative;
  margin-top: 0.7rem;
  width: min(100%, 950px);
}

.icon-style-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.icon-style-row-bottom {
  width: min(82%, 760px);
  margin: clamp(-190px, -16vw, -110px) auto 0;
}

.icon-style-row .screenshot-frame {
  max-height: var(--image-max-height) !important;
  border: 2px solid var(--surface-border);
  border-radius: clamp(14px, 2.2vw, 34px);
  background: var(--app-icon-bg);
  box-shadow: 0 5px 0 var(--app-icon-shadow);
  transform-origin: center center;
}

.icon-style-row-top .screenshot-frame {
  max-width: 214px;
  width: calc((100% + 54px) / 4);
}

.icon-style-row-bottom .screenshot-frame {
  max-width: 236px;
  width: calc((100% + 36px) / 3);
}

.icon-style-row .screenshot-frame + .screenshot-frame {
  margin-left: -20px;
}

.icon-style-row-top .screenshot-frame:nth-child(1) {
  transform: rotate(-3.2deg);
}

.icon-style-row-top .screenshot-frame:nth-child(2) {
  transform: rotate(2.4deg) translateY(4px);
}

.icon-style-row-top .screenshot-frame:nth-child(3) {
  transform: rotate(-2.1deg) translateY(-2px);
}

.icon-style-row-top .screenshot-frame:nth-child(4) {
  transform: rotate(3deg) translateY(3px);
}

.icon-style-row-bottom .screenshot-frame:nth-child(1) {
  transform: rotate(2.3deg) translateY(2px);
}

.icon-style-row-bottom .screenshot-frame:nth-child(2) {
  transform: rotate(-3deg) translateY(-4px);
}

.icon-style-row-bottom .screenshot-frame:nth-child(3) {
  transform: rotate(2.6deg) translateY(3px);
}

.icon-style-note {
  position: absolute;
  inset-inline: 0;
  top: 90%;
  margin: 0 auto;
  width: min(86%, 620px);
  transform: translateY(-50%) rotate(-2.9deg);
  z-index: 4;
}

.log {
  position: relative;
  width: min(760px, 92%);
  min-height: 88px;
  margin: 6rem auto 0;
  border: 4px solid var(--surface-border);
  border-radius: 32px / 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem 0.7rem 5rem;
  background:
    linear-gradient(180deg, var(--wood-light) 0 20%, var(--wood-mid) 20% 74%, var(--wood-dark) 74%),
    repeating-linear-gradient(110deg, rgba(102, 44, 11, 0.32) 0 7px, rgba(255, 180, 106, 0.06) 7px 14px);
  z-index: 1;
}

.log::before {
  content: "";
  position: absolute;
  left: -8px;
  top: -4px;
  bottom: -4px;
  width: 56px;
  border: 4px solid var(--surface-border);
  border-radius: 50%;
  background: var(--log-cap-bg);
}

.leaf {
  position: absolute;
  width: 24px;
  height: 36px;
  border: 3px solid var(--surface-border);
  border-radius: 50% 50% 50% 8px;
}

.leaf {
  right: 44px;
  top: -24px;
  transform: rotate(-18deg);
  background: linear-gradient(180deg, var(--leaf-highlight-1), var(--leaf));
}

.leaf-secondary {
  right: 22px;
  top: -22px;
  transform: rotate(14deg);
  background: linear-gradient(180deg, var(--leaf-highlight-2), var(--leaf-dark));
}

.log-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.58rem;
  border: 2px solid var(--nav-link-border);
  border-radius: 999px;
  font-family: "Bree Serif", serif;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1;
  text-align: center;
  color: var(--nav-link-text);
  text-decoration: none;
  background: var(--nav-link-bg);
  transition: transform 140ms ease, background-color 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.log-link:hover,
.log-link:focus-visible {
  transform: translateY(-1px);
  background: var(--nav-link-active-bg);
  color: var(--nav-link-active-text);
  border-color: var(--nav-link-active-border);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}

.log-link[aria-current="page"] {
  color: var(--nav-link-active-text);
  background: var(--nav-link-active-bg);
  border-color: var(--nav-link-active-border);
}

.contact-link {
  align-items: baseline;
  gap: 0.34rem;
}

.contact-icon {
  display: inline-block;
  flex: 0 0 auto;
  align-self: baseline;
  width: 1em;
  height: 1em;
  object-fit: contain;
  transform: translateY(0.12em);
  vertical-align: baseline;
  filter: invert(92%) sepia(18%) saturate(318%) hue-rotate(332deg) brightness(101%) contrast(97%);
}

.log-link:hover .contact-icon,
.log-link:focus-visible .contact-icon,
.log-link[aria-current="page"] .contact-icon {
  filter: invert(7%) sepia(42%) saturate(1222%) hue-rotate(343deg) brightness(94%) contrast(93%);
}

.site-meta {
  margin: 0.8rem auto 0;
  width: min(760px, 92%);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-meta p {
  margin: 0;
}

.site-meta a {
  color: var(--text-link);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f0e3d1;
    --bg: #1b1410;
    --bg-line: #2a1f18;
    --wood-light: #8f5a32;
    --wood-mid: #673b1f;
    --wood-dark: #3f2414;
    --leaf: #4da879;
    --leaf-dark: #2d734f;
    --leaf-highlight-1: #5bc58b;
    --leaf-highlight-2: #41b273;
    --icon-paper-1: #8f6d57;
    --icon-paper-2: #775a47;
    --icon-paper-3: #5f4738;
    --surface-border: #271308;
    --surface-border-strong: #271308;
    --surface-shadow: rgba(0, 0, 0, 0.3);
    --surface-shadow-soft: rgba(0, 0, 0, 0.35);
    --surface-rim: rgba(255, 228, 172, 0.2);
    --surface-pattern:
      repeating-linear-gradient(84deg,
        rgba(74, 51, 36, 0.2) 0,
        rgba(74, 51, 36, 0.2) 1px,
        rgba(255, 255, 255, 0) 1px,
        rgba(255, 255, 255, 0) 7px),
      repeating-radial-gradient(circle at 0 0,
        rgba(46, 29, 19, 0.2) 0 1px,
        rgba(255, 255, 255, 0) 1px 7px),
      linear-gradient(180deg, var(--icon-paper-1), var(--icon-paper-2) 58%, var(--icon-paper-3));
    --surface-pattern-size: auto, 11px 11px, auto;
    --surface-rod-bg:
      linear-gradient(90deg, #8d6138 0 26%, #b2824f 26% 74%, #613d23 74%),
      repeating-linear-gradient(180deg,
        rgba(28, 14, 8, 0.24) 0,
        rgba(28, 14, 8, 0.24) 6px,
        rgba(223, 177, 114, 0.05) 6px,
        rgba(223, 177, 114, 0.05) 13px);
    --surface-rod-shadow: rgba(0, 0, 0, 0.32);
    --app-icon-bg: linear-gradient(180deg, #8f6d4f, #71533e);
    --app-icon-shadow: rgba(0, 0, 0, 0.35);
    --text-link: #ffeac8;
    --text-muted: #f0debf;
    --sticky-heading: #fff8ee;
    --sticky-body: #f7e9d3;
    --nav-link-border: #271308;
    --nav-link-text: #f8e9cf;
    --nav-link-bg: rgba(40, 19, 8, 0.45);
    --nav-link-active-text: #2d180c;
    --nav-link-active-bg: #f1cc97;
    --nav-link-active-border: #271308;
    --log-cap-bg:
      radial-gradient(ellipse at 50% 50%, #ab7749 0 16%, #915f39 16% 35%, #7c4f2f 35% 56%, #5f3823 56% 75%, #452818 75%);
    --panel-bg: rgba(0, 0, 0, 0.16);
    --selection-bg: #8f5a32;
    --selection-text: #fff4e2;
  }
}

@media (max-width: 560px) {
  .log {
    min-height: auto;
    width: min(420px, 92%);
    border-radius: 32px / 50%;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    justify-items: stretch;
    padding: 0.75rem 2rem 0.75rem 4rem;
    gap: 0.35rem;
  }

  .log::before {
    width: 52px;
    left: -12px;
  }

  .log .log-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.2rem;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.2;
    padding: 0.38rem 0.8rem;
  }

  .site-meta {
    width: min(560px, 92%);
    font-size: 0.85rem;
  }
}

.content-grid {
  display: grid;
  gap: 0.85rem;
}

.content-card {
  padding: 0.7rem 0.85rem;
  border: 2px solid var(--panel-border);
  border-radius: 10px;
  background: var(--panel-bg);
}

.content-card > :first-child {
  margin-top: 0;
}

.content-card > :last-child {
  margin-bottom: 0;
}

.content-card h2 {
  margin: 0 0 0.6rem;
  line-height: 1.15;
}

.content-card h2 + p,
.content-card h2 + ul {
  margin-top: 0;
}

.content-date {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.press-shot-list + .log-link {
  margin: 0.65rem 0 0;
  max-width: 100%;
}

.press-shot-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 0.4rem;
}

.press-shot-list li {
  margin: 0;
}

.press-shot-list a {
  display: block;
  border: 2px solid var(--surface-border);
  border-radius: 8px;
  background: var(--icon-paper-1);
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 2px 0 var(--surface-shadow);
}

.press-shot-list .screenshot-frame {
  width: 100%;
  height: auto;
  margin: 0;
}
