tane/site/assets/css/main.css
vjrj 8dce6f7027 feat(web): tane.comunes.org landing + localized app screenshots
- Hugo site (site/): EN/ES intro + legal (generated from docs/legal), an
  ES/EN About page from docs/{que-es-tane,what-is-tane}.md, seed-green theme,
  responsive header, store-badge placeholders, multi-stage Hugo->nginx image.
- Golden screenshot harness (test/screenshots/): en,es,fr,de,pt,ja + RTL demo,
  real fonts via DejaVu Sans + FontManifest; skip-by-default tag so CI stays
  green. collect_screenshots.sh feeds site/ and fastlane phoneScreenshots.
- Drop editorial notes from the public explainer.
2026-07-15 02:21:42 +02:00

198 lines
4.9 KiB
CSS

:root {
--green: #2f7d34;
--green-dark: #22521e;
--appbar: #3a8434;
--canvas: #e7f1e0;
--container: #d3e8c8;
--on-container: #2f6d2a;
--title: #1b2416;
--muted: #5c6b52;
--field: #f3f7ee;
--outline: #c3cbb6;
--white: #fff;
--maxw: 1060px;
--radius: 18px;
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
color: var(--title);
background: var(--canvas);
line-height: 1.55;
-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
.skip-link {
position: absolute;
inset-inline-start: -999px;
background: var(--green);
color: #fff;
padding: .6rem 1rem;
border-radius: 0 0 8px 0;
z-index: 10;
}
.skip-link:focus { inset-inline-start: 0; }
/* Header */
.site-header {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: .4rem 1.2rem;
padding: .7rem clamp(1rem, 4vw, 2rem);
background: var(--appbar);
color: #fff;
position: sticky;
top: 0;
z-index: 5;
}
.brand {
display: inline-flex;
align-items: center;
gap: .55rem;
color: #fff;
text-decoration: none;
font-weight: 700;
font-size: 1.25rem;
flex-shrink: 0;
}
.brand img { border-radius: 8px; }
.site-nav {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: .5rem 1.1rem;
}
.site-nav a { color: #fff; text-decoration: none; opacity: .95; white-space: nowrap; }
.site-nav a:hover { text-decoration: underline; }
.lang-switch { display: inline-flex; gap: .6rem; font-size: .92rem; white-space: nowrap; }
.lang-switch .current { opacity: .7; }
.lang-switch a.lang { color: #fff; }
/* Narrow phones: brand on its own row, nav wraps beneath it, left-aligned. */
@media (max-width: 560px) {
.site-header { gap: .5rem; }
.brand { font-size: 1.15rem; }
.site-nav { width: 100%; gap: .4rem 1rem; font-size: .95rem; }
}
main { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
/* Hero */
.hero {
display: grid;
grid-template-columns: 1.1fr .9fr;
gap: clamp(1.5rem, 4vw, 3rem);
align-items: center;
padding: clamp(2rem, 6vw, 4rem) 0 2rem;
}
.hero h1 {
font-size: clamp(2rem, 5vw, 3.1rem);
line-height: 1.1;
margin: 0 0 .6rem;
color: var(--green-dark);
}
.hero .tagline { font-size: 1.25rem; font-weight: 600; color: var(--on-container); margin: 0 0 1rem; }
.hero .lead { font-size: 1.05rem; margin: 0 0 1rem; }
.hero-shot { display: flex; justify-content: center; }
/* Phone frame */
.phone {
background: #12261a;
padding: 8px;
border-radius: 28px;
box-shadow: 0 18px 40px rgba(20, 50, 25, .22);
width: 232px;
max-width: 62vw;
}
.phone img { border-radius: 20px; }
/* Sections */
section { margin: 2.5rem 0; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--green-dark); }
.pillars {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.2rem;
}
.pillar {
background: var(--white);
border: 1px solid var(--outline);
border-radius: var(--radius);
padding: 1.4rem;
}
.pillar-icon { font-size: 1.8rem; }
.pillar h2 { font-size: 1.2rem; margin: .5rem 0; }
.pillar p { margin: 0; color: #2c3826; }
.shots .shot-row {
display: flex;
gap: 1.2rem;
justify-content: center;
flex-wrap: wrap;
}
.shots h2 { text-align: center; }
.values {
background: var(--container);
border-radius: var(--radius);
padding: 1.6rem clamp(1.2rem, 4vw, 2.2rem);
}
.values ul { margin: .5rem 0 0; padding-inline-start: 1.2rem; }
.values li { margin: .45rem 0; }
.get-it { text-align: center; }
.store-badges { margin-top: 1.2rem; }
.coming-soon { color: var(--muted); font-style: italic; }
.badge {
display: inline-block;
background: var(--green);
color: #fff;
text-decoration: none;
padding: .7rem 1.4rem;
border-radius: 999px;
margin: .3rem;
font-weight: 600;
}
/* Legal docs */
.doc { padding: 2rem 0 3rem; max-width: 760px; }
.doc h1 { color: var(--green-dark); }
.doc-body h2 { font-size: 1.3rem; margin-top: 1.8rem; }
.doc-body { font-size: 1.02rem; }
.crumb { color: var(--muted); }
.legal-index { list-style: none; padding: 0; }
.legal-index li {
padding: 1rem 1.2rem;
background: var(--white);
border: 1px solid var(--outline);
border-radius: 12px;
margin: .7rem 0;
}
.legal-index a { font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.legal-index .desc { display: block; color: var(--muted); font-size: .95rem; margin-top: .2rem; }
/* Footer */
.site-footer {
background: var(--green-dark);
color: #dfeeda;
margin-top: 3rem;
}
.foot-inner { max-width: var(--maxw); margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2rem); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.foot-legal a { color: #fff; }
.foot-note { margin: .3rem 0; font-size: .92rem; }
.site-footer a { color: #cfe7c3; }
@media (max-width: 820px) {
.hero { grid-template-columns: 1fr; }
.hero-shot { order: -1; }
.pillars { grid-template-columns: 1fr; }
}