/* Shared stylesheet of rambletstudio.com. Layout: one wide editorial column; a dotted trail crosses the top of the home page. */
:root {
  --paper: #F6F1E7;
  --card: #FFFDF8;
  --ink: #1B1F1C;
  --muted: #5B615C;
  --line: #E4DCCB;
  --blue: #1F5FAF;
  --sapin: #2F5137;
  --gres: #C8772E;
  --night: #1B1F1C;
  --night-fg: #F6F1E7;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #141715; --card: #1C201D; --ink: #EDEAE2; --muted: #A4AAA5; --line: #2D332F; --blue: #6FA3EA; --sapin: #7DB38A; --gres: #D8995A; --night: #0B0D0C; --night-fg: #EDEAE2; color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #141715; --card: #1C201D; --ink: #EDEAE2; --muted: #A4AAA5; --line: #2D332F; --blue: #6FA3EA; --sapin: #7DB38A; --gres: #D8995A; --night: #0B0D0C; --night-fg: #EDEAE2; color-scheme: dark; }
* { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.02; }
p { margin: 0; }
.wrap { max-width: 1080px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.label { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }

header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; text-decoration: none; }
.wordmark img { height: 84px; width: auto; display: block; border-radius: 16px; }
@media (max-width: 600px) { .wordmark img { height: 60px; border-radius: 12px; } }
.lg-dark { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lg-dark { display: block !important; } :root:not([data-theme="light"]) .lg-light { display: none !important; } }
:root[data-theme="dark"] .lg-dark { display: block !important; }
:root[data-theme="dark"] .lg-light { display: none !important; }
nav { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--ink); }
@media (max-width: 600px) { nav { display: none; } }

.hero { position: relative; padding-block: 56px 40px; }
.hero h1 { font-size: clamp(48px, 9vw, 116px); font-weight: 800; letter-spacing: -.045em; max-width: 9.5em; }
.hero h1 .c1 { color: var(--sapin); }
.right { display: flex; align-items: center; gap: 22px; }
.lang { text-decoration: none; font: 600 13px var(--mono); letter-spacing: .06em; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.lang:hover { border-color: var(--blue); }
.hero .lead { margin-top: 26px; font-size: 20px; color: var(--muted); max-width: 31em; }
.define { margin-top: 40px; display: inline-grid; gap: 4px; padding: 18px 22px; border-left: 3px solid var(--blue); background: var(--card); border-radius: 0 14px 14px 0; max-width: 100%; }
.define .w { font-family: var(--display); font-weight: 700; font-size: 22px; }
.define .ph { font-family: var(--mono); font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.define p { color: var(--muted); font-size: 15.5px; }
.trail { position: absolute; right: 0; top: 40px; width: min(40vw, 420px); height: 360px; pointer-events: none; }
@media (max-width: 860px) { .trail { display: none; } }

section { padding-block: 72px; }
.sec-title { display: grid; gap: 10px; margin-bottom: 32px; }
.sec-title h2 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; letter-spacing: -.035em; }

.btn { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-weight: 700; text-decoration: none; padding: 13px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.btn:hover { background: var(--blue); }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.principles > div { min-width: 0; display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px dashed var(--line); }
.principles h3 { font-family: var(--body); font-size: 20px; font-weight: 700; }
.principles p { color: var(--muted); font-size: 16px; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; gap: 20px; } }

.name { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.name > * { min-width: 0; }
.name p { color: var(--muted); }
.name p + p { margin-top: 14px; }
@media (max-width: 760px) { .name { grid-template-columns: 1fr; gap: 20px; } }

.contact { background: var(--night); color: var(--night-fg); border-radius: 30px; padding: 44px 36px; display: grid; gap: 18px; }
.contact h2 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; letter-spacing: -.03em; }
.contact p { opacity: .8; max-width: 34em; }
.mail { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mail code { font-family: var(--mono); font-size: 18px; user-select: all; background: rgba(255,255,255,.08); padding: 10px 14px; border-radius: 12px; }
.mail button { font: 600 15px var(--body); border: 1.5px solid rgba(255,255,255,.3); background: transparent; color: inherit; padding: 10px 16px; border-radius: 999px; cursor: pointer; }
@media (max-width: 600px) { .contact { padding: 28px 22px; } .mail code { font-size: 15px; } }

.home { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; background: var(--card); border: 1px solid var(--line); border-radius: 30px; padding: 24px 32px; }
.home svg { flex: none; }
.home > div { flex: 1 1 260px; min-width: 0; display: grid; gap: 4px; }
.home h3 { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.home p { color: var(--muted); font-size: 16px; }

/* App cards on the home page: each card takes its app colour (--c) and plays a small scene on hover */
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .apps { grid-template-columns: 1fr; } }
.app { --c: var(--blue); position: relative; overflow: hidden; isolation: isolate; background: var(--card); border: 1.5px solid var(--line); border-radius: 26px; padding: 24px 24px 28px; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 6px 18px; align-items: start; text-decoration: none; transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease, border-color .25s ease; }
.app::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--c) 32%, transparent), transparent 66%); opacity: 0; transition: opacity .35s ease; }
.app > .ic, .app > h3, .app > p, .app > .meta { position: relative; z-index: 1; }
.app .ic { grid-row: 1 / span 3; width: 76px; height: 76px; border-radius: 18px; overflow: hidden; box-shadow: 0 8px 18px -10px rgba(0,0,0,.5); transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.app .ic img { width: 100%; height: 100%; display: block; }
.app h3 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; padding-right: 44px; }
.app p { color: var(--muted); font-size: 15.5px; }
.app .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; padding-right: 110px; }
.chip { font: 500 12.5px var(--mono); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.chip.go { color: var(--sapin); border-color: currentColor; }
.chip.ext { color: var(--blue); border-color: currentColor; }
.go-arrow { position: absolute; top: 20px; right: 20px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 800; transform: translateX(14px) scale(.6) rotate(-45deg); opacity: 0; transition: transform .45s cubic-bezier(.34,1.56,.64,1), opacity .25s ease; }
.scene { position: absolute; right: 0; bottom: 0; width: 200px; height: 128px; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.scene * { transform-box: fill-box; }
@media (hover: hover) {
  a.app:hover, a.app:focus-visible, div.app:hover { transform: translateY(-6px) rotate(-.6deg); border-color: var(--c); box-shadow: 0 22px 40px -22px color-mix(in srgb, var(--c) 70%, black); }
  .app:hover::before, .app:focus-visible::before { opacity: 1; }
  .app:hover .ic, .app:focus-visible .ic { transform: scale(1.1) rotate(-8deg); }
  a.app:hover .go-arrow, a.app:focus-visible .go-arrow { transform: none; opacity: 1; }
  .app:hover .scene, .app:focus-visible .scene { opacity: 1; }
}
/* Phones have no hover: the scene is shown and plays once when the card comes on screen (class "seen") */
@media (hover: none) { .scene { opacity: .95; } .app.seen::before { opacity: 1; } a.app .go-arrow { transform: none; opacity: 1; width: 32px; height: 32px; } }
@media (max-width: 600px) { .app { grid-template-columns: 60px minmax(0, 1fr); padding: 20px 18px 24px; } .app .ic { width: 60px; height: 60px; border-radius: 14px; } .app h3 { font-size: 22px; } .app .meta { padding-right: 0; } .app p { padding-right: 0; } .scene { width: 120px; height: 77px; opacity: .6; } }
.pine { transform-origin: 50% 100%; transform: scaleY(0); transition: transform .55s cubic-bezier(.34,1.56,.64,1); }
.pine.p2 { transition-delay: .08s; } .pine.p3 { transition-delay: .16s; }
.app:hover .pine, .app.seen .pine { transform: scaleY(1); }
.heart { transform-origin: 50% 60%; }
.app:hover .heart, .app.seen .heart { animation: beat 1s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(.96); } 45% { transform: scale(1.1); } }
.sun { transform: translateY(38px); transition: transform .9s cubic-bezier(.22,1,.36,1); }
.rays { opacity: 0; transform-origin: 50% 50%; transition: opacity .5s ease .5s; }
.app:hover .sun, .app.seen .sun { transform: none; }
.app:hover .rays, .app.seen .rays { opacity: 1; animation: spin 12s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ball { transform: translateX(-90px); }
.app:hover .ball, .app.seen .ball { animation: putt 1.1s cubic-bezier(.3,.7,.4,1) forwards; }
@keyframes putt { 0% { transform: translateX(-90px); } 80% { transform: translateX(0); } 90% { transform: translate(0, 4px) scale(.85); } 100% { transform: translate(0, 9px) scale(.6); opacity: 0; } }
.flag { transform-origin: 0% 50%; }
.app:hover .flag, .app.seen .flag { animation: wave .9s ease-in-out infinite alternate; }
@keyframes wave { from { transform: skewY(-6deg) scaleX(.92); } to { transform: skewY(5deg) scaleX(1.04); } }
@media (prefers-reduced-motion: reduce) { .app, .app .ic, .go-arrow, .pine, .sun { transition: none; } a.app:hover, div.app:hover { transform: none; } .heart, .rays, .flag, .ball { animation: none !important; } .ball { transform: none; } .pine { transform: none; } .sun { transform: none; } .rays { opacity: 1; } }

/* App page, help and privacy pages: --app is the app colour (--app-light), lighter in dark mode (--app-dark) */
.app-page { --app: var(--app-light); }
.crumb { font: 13.5px var(--mono); color: var(--muted); padding-top: 4px; }
.crumb a { text-decoration: none; color: var(--blue); }
.crumb a:hover { text-decoration: underline; }
.app-hero { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 28px 8px; }
.app-hero .ic { width: 132px; height: 132px; border-radius: 30px; overflow: hidden; box-shadow: 0 20px 36px -22px rgba(0,0,0,.6); }
.app-hero .ic img { width: 100%; height: 100%; display: block; }
.app-hero h1 { font-size: clamp(44px, 7vw, 76px); font-weight: 800; letter-spacing: -.045em; color: var(--app); }
.app-hero .tag { font-size: 20px; color: var(--muted); margin-top: 10px; max-width: 30em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-page { --app: var(--app-dark); } }
:root[data-theme="dark"] .app-page { --app: var(--app-dark); }
@media (max-width: 600px) { .app-hero { grid-template-columns: 1fr; gap: 18px; } .app-hero .ic { width: 96px; height: 96px; border-radius: 22px; } }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.store { display: inline-flex; flex-direction: column; line-height: 1.15; padding: 9px 18px; border-radius: 12px; color: var(--muted); border: 1.5px dashed var(--line); font-weight: 700; font-size: 16px; }
.store small { font-weight: 500; font-size: 11.5px; }
.feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feat > div { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: grid; gap: 8px; align-content: start; border-top: 4px solid var(--app); }
.feat h3 { font: 700 18px var(--body); }
.feat p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 760px) { .feat { grid-template-columns: 1fr; } }
.links2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.links2 a { display: grid; gap: 4px; padding: 20px 22px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--card); text-decoration: none; transition: border-color .2s ease, transform .3s ease; }
.links2 a:hover { border-color: var(--app); transform: translateY(-2px); }
.links2 a b { font-size: 18px; }
.links2 a span { color: var(--muted); font-size: 15px; }
@media (max-width: 600px) { .links2 { grid-template-columns: 1fr; } }
.doc { max-width: 700px; padding-block: 12px 48px; display: grid; gap: 24px; }
.doc h1 { font-size: clamp(36px, 5.4vw, 54px); font-weight: 800; letter-spacing: -.035em; }
.doc h2 { font: 700 20px var(--body); }
.doc p, .doc li { color: var(--muted); }
.doc a { color: var(--blue); }
.doc ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.doc .block { display: grid; gap: 8px; }
.doc .upd { font: 13.5px var(--mono); color: var(--muted); }
.legal-doc { gap: 12px; }
.legal-doc h2 { margin-top: 16px; }
.notice { border-left: 4px solid var(--app); background: var(--card); border-radius: 0 16px 16px 0; padding: 16px 20px; color: var(--ink); }
.faq { display: grid; gap: 10px; }
details { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 14px 18px; }
details summary { cursor: pointer; font-weight: 700; }
details p { margin-top: 8px; }
.mailbox { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: grid; gap: 6px; }
.mailbox code { font: 16px var(--mono); color: var(--ink); user-select: all; overflow-wrap: anywhere; }

/* Common footer of every page (also the model for forestbleau.fr and CareMyGolf, app-template/BRAND.md) */
.site-foot { border-top: 1px solid var(--line); margin-top: 24px; }
.site-foot .wrap { display: grid; gap: 16px; padding-block: 28px 36px; }
.sig { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 14.5px; font-weight: 600; min-height: 44px; width: fit-content; }
.sig img { width: 22px; height: 22px; }
.sig:hover span { text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--muted); }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-links .sep { width: 1px; background: var(--line); align-self: stretch; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; font-size: 13.5px; color: var(--muted); }
.story { font-style: italic; color: var(--muted); font-size: 14.5px; }

/* App screens (optional "screens" in content.py): a row that scrolls sideways on a phone */
.shots-h { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--app); margin-bottom: 16px; }
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; -webkit-overflow-scrolling: touch; }
.shots figure { flex: 0 0 210px; margin: 0; scroll-snap-align: start; }
.shots img { width: 100%; height: auto; display: block; border-radius: 26px; box-shadow: 0 18px 34px -22px rgba(0,0,0,.55); }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }
.shots-note { font-size: 13px; color: var(--muted); }
@media (max-width: 600px) { .shots figure { flex-basis: 66%; } }

/* VelvetBowl card: the sprout grows out of the bowl, then its leaves open */
.sprout { transform-origin: 50% 100%; transform: scaleY(0); transition: transform .6s cubic-bezier(.34,1.56,.64,1); }
.leaf { transform: scale(0); transition: transform .45s cubic-bezier(.34,1.56,.64,1) .35s; }
.leaf.l1 { transform-origin: 100% 80%; } .leaf.l2 { transform-origin: 0% 80%; transition-delay: .45s; }
.app:hover .sprout, .app.seen .sprout, .app:hover .leaf, .app.seen .leaf { transform: none; }
@media (prefers-reduced-motion: reduce) { .sprout, .leaf { transform: none; transition: none; } }
.apps > .app:last-child:nth-child(odd) { grid-column: 1 / -1; }
