Build static Astro pilot for Happy Tails
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
:root { color-scheme: light; font-family: 'DM Sans', sans-serif; color: var(--ink); background: #fff; }
|
||||
* { box-sizing: border-box; }
|
||||
body { margin: 0; line-height: 1.55; }
|
||||
a { color: inherit; }
|
||||
img { display: block; max-width: 100%; }
|
||||
h1,h2,h3,p { margin-top: 0; }
|
||||
h1,h2 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; line-height: 1.03; letter-spacing: -.035em; }
|
||||
h1 { font-size: clamp(3.1rem, 7vw, 6.7rem); max-width: 10ch; margin-bottom: 1.5rem; }
|
||||
h2 { font-size: clamp(2.25rem, 4vw, 4.1rem); margin-bottom: 1.25rem; }
|
||||
h3 { font-size: 1.2rem; margin-bottom: .5rem; }
|
||||
.shell { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
|
||||
.site-header { position: relative; z-index: 5; background: #fff; border-bottom: 1px solid #e8ecea; }
|
||||
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
|
||||
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-size: 1.15rem; font-weight: 700; letter-spacing: -.03em; }
|
||||
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; color: #fff; background: var(--accent); border-radius: 50%; font-size: .85rem; }
|
||||
nav { display: flex; align-items: center; gap: 1.5rem; }
|
||||
nav a { color: #52616b; text-decoration: none; font-size: .92rem; font-weight: 600; }
|
||||
nav a[aria-current='page'], nav a:hover { color: var(--ink); }
|
||||
.menu-button { display: none; font: inherit; font-weight: 600; color: var(--ink); background: transparent; border: 0; }
|
||||
.hero { padding: clamp(4rem, 9vw, 8rem) 0; overflow: hidden; background: linear-gradient(110deg, var(--surface) 0%, var(--surface) 68%, #fff 68%); }
|
||||
.hero-grid,.story-grid,.contact-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(3rem, 7vw, 8rem); }
|
||||
.hero-copy { padding: 1rem 0; }
|
||||
.eyebrow,.tag { color: color-mix(in srgb, var(--accent), var(--ink) 25%); text-transform: uppercase; letter-spacing: .13em; font-size: .73rem; font-weight: 700; margin-bottom: 1rem; }
|
||||
.lede { color: #52616b; font-size: clamp(1.1rem, 2vw, 1.32rem); max-width: 48ch; }
|
||||
.button { display: inline-flex; gap: .65rem; align-items: center; margin-top: 1.4rem; padding: .9rem 1.2rem; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; transition: transform .2s, background .2s; }
|
||||
.button:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); }
|
||||
.hero-image { position: relative; }
|
||||
.hero-image img { aspect-ratio: 4 / 4.6; width: 100%; object-fit: cover; border-radius: 1.25rem; }
|
||||
.image-note { position: absolute; right: -1.5rem; bottom: 1.5rem; padding: .8rem 1rem; background: var(--accent); color: #102a43; font-weight: 700; transform: rotate(-4deg); }
|
||||
.section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
|
||||
.surface { background: var(--surface); }
|
||||
.section-heading { max-width: 720px; margin-bottom: 3rem; }
|
||||
.section-heading.split { max-width: none; display: grid; grid-template-columns: 1.25fr .75fr; gap: 2rem; }
|
||||
.section-heading.split > p { color: #52616b; font-size: 1.06rem; align-self: end; }
|
||||
.feature-grid,.review-grid,.service-grid,.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
|
||||
.feature { padding: 2rem; background: #fff; border: 1px solid #e8ecea; border-radius: .85rem; }
|
||||
.feature > span { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 1.5rem; border-radius: 50%; background: var(--surface); color: var(--accent); font-size: 1.4rem; }
|
||||
.feature p,.review p,.team-card p,.post-card p,.service-card > p { color: #52616b; }
|
||||
.story-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 1.1rem; }
|
||||
.text-link { display: inline-block; margin-top: .7rem; color: var(--ink); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }
|
||||
.review { margin: 0; padding: 1.75rem; border-radius: .8rem; background: #fff; border: 1px solid #e8ecea; }
|
||||
.review .stars { color: var(--accent); font-size: .85rem; letter-spacing: .12em; }
|
||||
.review blockquote { margin: 0; }
|
||||
.review footer { font-weight: 700; }.review footer span { display: block; margin-top: .15rem; color: #75828c; font-size: .82rem; font-weight: 400; }
|
||||
.review-disclosure,.phase-note { margin: 1.8rem auto 0; color: #66747d; font-size: .86rem; max-width: 75ch; }
|
||||
.page-intro { padding: clamp(4rem, 8vw, 7rem) 0 2rem; background: var(--surface); }.page-intro .lede { max-width: 55ch; }
|
||||
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }.team-card { display: grid; grid-template-columns: 150px 1fr; overflow: hidden; background: #fff; border: 1px solid #e8ecea; border-radius: .85rem; }.team-card img { width: 100%; height: 100%; object-fit: cover; }.team-card div { padding: 1.5rem; }
|
||||
.service-card { padding: 2rem; border: 1px solid #dce4e1; border-radius: .85rem; background: #fff; }.service-card.featured { border: 2px solid var(--accent); transform: translateY(-.5rem); }.service-card h2 { font-size: 2.2rem; }.service-card ul { padding: 0; list-style: none; }.service-card li { padding: .4rem 0; border-top: 1px solid #e8ecea; }.service-card li::before { content: '✓'; color: var(--accent); font-weight: 700; margin-right: .55rem; }
|
||||
.centered { text-align: center; }.centered .lede { margin-inline: auto; }
|
||||
.contact-grid { align-items: start; }.contact-details { margin-top: 2rem; font-style: normal; color: #52616b; }.contact-details p { margin-bottom: .8rem; }.contact-details a { color: var(--ink); font-weight: 700; }.contact-form { display: grid; gap: 1rem; padding: 2rem; background: var(--surface); border-radius: .85rem; }.contact-form label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 700; }.contact-form input,.contact-form textarea { width: 100%; padding: .8rem; font: inherit; border: 1px solid #cbd5d1; border-radius: .35rem; background: #fff; }.contact-form button:disabled { cursor: not-allowed; opacity: .6; }.contact-form p { margin-bottom: 0; color: #66747d; font-size: .85rem; }
|
||||
.post-card { padding: 2rem; border-radius: .85rem; background: #fff; border: 1px solid #dce4e1; }.post-card h3 { font-family: 'DM Serif Display', Georgia, serif; font-size: 1.75rem; font-weight: 400; line-height: 1.1; }.post-card footer { color: #75828c; font-size: .85rem; }.not-found { min-height: 55vh; display: grid; place-items: center; }
|
||||
.site-footer { padding: 4rem 0 1.25rem; background: var(--ink); color: #fff; }.site-footer .brand { color: #fff; }.site-footer p { color: #c5d0d6; max-width: 34ch; }.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }.footer-link { display: block; margin: .6rem 0; color: #fff; text-decoration: none; }.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid #35505f; color: #c5d0d6; font-size: .85rem; }
|
||||
@media (max-width: 760px) { .shell { width: min(100% - 2rem, 1120px); }.menu-button { display: inline-flex; gap: .5rem; } .nav-wrap { min-height: 68px; } nav { display: none; position: absolute; top: 68px; right: 1rem; left: 1rem; padding: 1rem; background: #fff; border: 1px solid #e8ecea; border-radius: .6rem; box-shadow: 0 1rem 2rem #102a4320; } nav.is-open { display: grid; } .hero { background: var(--surface); }.hero-grid,.story-grid,.contact-grid,.section-heading.split { grid-template-columns: 1fr; gap: 2.5rem; }.hero-image { max-width: 520px; }.image-note { right: -.5rem; }.feature-grid,.review-grid,.service-grid,.post-grid { grid-template-columns: 1fr; }.service-card.featured { transform: none; }.team-grid { grid-template-columns: 1fr; }.footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }.footer-bottom { display: block; }.footer-bottom span { display: block; margin-top: .5rem; } }
|
||||
Reference in New Issue
Block a user