/* Ronic's own site (draft 4). The look borrowed from Amit's style video
   (a one-screen portfolio site: bare paper, a tiny header with a clock dial, one big plain
   sentence or a lowercase page word, tall pictures low on the page, a menu of page cards). */
:root {
  --paper: #f4efe7;   /* Ronic beige */
  --ink: #161614;
  --ground: #6b6a55;      /* the menu's olive ground */
  --pine: #4548e2;        /* Ronic indigo: the one main button */
  --shade: #e9e2d6;       /* the one inset shade */
  --rule: rgba(22, 22, 20, 0.16);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper); color: var(--ink);
  font: 400 15px/1.4 "Hanken Grotesk", system-ui, sans-serif;
  min-height: 100svh; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* one page = one screen */
.screen {
  max-width: 480px; width: 100%; margin: 0 auto; flex: 1;
  display: flex; flex-direction: column; padding: 0 16px;
}

/* the sample notice */
.sample { font-size: 12px; font-weight: 400; text-align: center; padding: 4px 16px; background: var(--shade); }
.sample a { text-decoration: underline; text-underline-offset: 2px; }

/* the header: tiny capitals, four parts, as in the video */
.top {
  display: grid; grid-template-columns: 1fr auto auto; align-items: start; gap: 24px;
  padding: 16px 0 8px; font-size: 12px; font-weight: 500; line-height: 1.25; text-transform: uppercase; letter-spacing: 0.02em;
}
.top a { min-height: 44px; display: block; }
.status { text-align: right; }
.status .open { color: var(--pine); }

/* type */
.statement { font-size: 42px; font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
.word { font-size: 72px; font-weight: 400; line-height: 1; letter-spacing: -0.04em; }
.title { font-size: 20px; font-weight: 600; line-height: 1.25; }
.small { font-size: 12px; font-weight: 500; line-height: 1.25; text-transform: uppercase; letter-spacing: 0.02em; }
.caption { font-size: 12px; font-weight: 400; line-height: 1.4; }

/* the ribbon: tall pictures that drift sideways */
.ribbon { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
.ribbon::-webkit-scrollbar { display: none; }
.tile { flex: none; width: 148px; display: grid; gap: 4px; align-content: start; }
.tile .pic { height: 188px; overflow: hidden; background: var(--shade); margin-bottom: 4px; }
.tile .name { font-size: 15px; font-weight: 600; line-height: 1.25; }

.btn.quiet { background: var(--shade); color: var(--ink); }
.btn {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 16px;
  font-size: 15px; font-weight: 600; background: var(--pine); color: var(--paper);
}
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #3437c4; }
  .top a:hover, .links a:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* the picture you tap grows into the top of its page (cross-page view transition) */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 400ms; animation-timing-function: ease-in-out; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
